2024-04-06 18:15:42 +08:00
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
2024-04-11 16:44:25 +08:00
|
|
|
|
namespace Game
|
2024-04-06 18:15:42 +08:00
|
|
|
|
{
|
2024-04-11 16:44:25 +08:00
|
|
|
|
[UIType(UIType.GameSceneHelpUI)]
|
|
|
|
|
public class GameSceneHelpUI : UIBase
|
2024-04-06 18:15:42 +08:00
|
|
|
|
{
|
2024-04-11 16:44:25 +08:00
|
|
|
|
private Button btn_Back;
|
2024-04-06 18:15:42 +08:00
|
|
|
|
|
2024-04-11 16:44:25 +08:00
|
|
|
|
public override void Init()
|
|
|
|
|
{
|
|
|
|
|
base.Init();
|
|
|
|
|
this.btn_Back = this.self.transform.FindChildDeep<Button>("btn_Back");
|
2024-04-06 18:15:42 +08:00
|
|
|
|
|
2024-04-11 16:44:25 +08:00
|
|
|
|
this.btn_Back.onClick.AddListener(this.ClickSureButton);
|
|
|
|
|
}
|
2024-04-06 18:15:42 +08:00
|
|
|
|
|
2024-04-11 16:44:25 +08:00
|
|
|
|
public override void Dispose()
|
|
|
|
|
{
|
|
|
|
|
base.Dispose();
|
|
|
|
|
this.btn_Back.onClick.RemoveListener(this.ClickSureButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ClickSureButton()
|
|
|
|
|
{
|
|
|
|
|
Game.uiManager.CloseLast();
|
|
|
|
|
}
|
2024-04-06 18:15:42 +08:00
|
|
|
|
}
|
|
|
|
|
}
|