30 lines
759 B
C#
30 lines
759 B
C#
|
using Game.MVVM.Model;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
namespace Game
|
|||
|
{
|
|||
|
[UIType(UIType.GameSceneHelpUI)]
|
|||
|
public class GameSceneHelpUI : UIBase
|
|||
|
{
|
|||
|
private GameSceneHelpView _view;
|
|||
|
|
|||
|
public override void Init()
|
|||
|
{
|
|||
|
base.Init();
|
|||
|
this._view = this.self.GetComponentInChildren<GameSceneHelpView>();
|
|||
|
this._view.BindingContext = new GameSceneHelpViewModel();
|
|||
|
this._view.BindingContext.OnClickBack += ClickSureButton;
|
|||
|
}
|
|||
|
|
|||
|
public override void Dispose()
|
|||
|
{
|
|||
|
base.Dispose();
|
|||
|
this._view.BindingContext.OnClickBack -= ClickSureButton;
|
|||
|
}
|
|||
|
|
|||
|
private void ClickSureButton()
|
|||
|
{
|
|||
|
Game.uiManager.CloseLast();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|