mycj_demo/mycj/Assets/Game/Scripts/Application/02View/Complete/FBUIComplete.cs
2024-12-02 09:37:47 +08:00

89 lines
1.9 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Felix-BangFBUIComplete
//   へ     /|
//  /7    ∠_/
//  / │    
//  Z _,    /`ヽ
// │     ヽ   /  〉
//  Y     `  /  /
// イ● 、 ●  ⊂⊃〈  /
// ()  へ    | \〈
//  >ー 、_  ィ  │
//  / へ   / ノ<|
//  ヽ_ノ  (_  │//
//  7       |
//  ―r ̄ ̄`ー―_
// Describe通关
// Createtime2018/10/09
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FBFramework;
using UnityEngine.UI;
using System;
namespace FBApplication
{
public class FBUIComplete : FBView
{
#region
[SerializeField]
private Button btnRestart;
[SerializeField]
private Button btnClear;
#endregion
#region
public override string Name
{
get
{
return FBConsts.V_Complete;
}
}
#endregion
#region Unity回调
private void Start()
{
btnRestart.onClick.AddListener(OnRestartClick);
btnClear.onClick.AddListener(OnClearClick);
}
#endregion
#region
public override void RegisterEvents()
{
base.RegisterEvents();
}
public override void HandleEvent(string eventName, object data = null)
{
}
#endregion
#region
private void OnRestartClick()
{
FBGame.Instance.LoadScene(1);
}
private void OnClearClick()
{
FBGameModel gameModel = GetModel<FBGameModel>();
gameModel.ClearProgress();
}
#endregion
}
}