结构大修改,改成朴实无华的结构,不过度架构。能跑就行
This commit is contained in:
@@ -21,7 +21,7 @@ namespace NBF
|
||||
{
|
||||
var item = context.data as BtnTitleInputControl;
|
||||
if (item == null) return;
|
||||
Game.Input.SendUIInput(item.ActionName);
|
||||
InputManager.Instance.SendUIInput(item.ActionName);
|
||||
Debug.Log("模拟点击===");
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ namespace NBF
|
||||
BtnPrev.onClick.Add(OnClickBtnPrev);
|
||||
BtnNext.onClick.Add(OnClickBtnNext);
|
||||
|
||||
Game.Input.OnUICanceled += OnUICanceled;
|
||||
InputManager.OnUICanceled += OnUICanceled;
|
||||
}
|
||||
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
Game.Input.OnUICanceled -= OnUICanceled;
|
||||
InputManager.OnUICanceled -= OnUICanceled;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
|
||||
@@ -25,12 +25,12 @@ namespace NBF
|
||||
BtnPrev.onClick.Add(OnClickBtnPrev);
|
||||
BtnNext.onClick.Add(OnClickBtnNext);
|
||||
|
||||
Game.Input.OnUICanceled += OnUICanceled;
|
||||
InputManager.OnUICanceled += OnUICanceled;
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
Game.Input.OnUICanceled -= OnUICanceled;
|
||||
InputManager.OnUICanceled -= OnUICanceled;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user