引导点击地板后立即隐藏UI
parent
6b12c7b642
commit
6752b9ac8e
|
|
@ -240,10 +240,12 @@ namespace Gameplay.Guide
|
|||
base.DoRealBeforeGuide();
|
||||
|
||||
EventManager.Instance.Register<int>(EventManager.EventName.Guide_ClickFloor, OnSetFightSpeed);
|
||||
EventManager.Instance.Register<int>(EventManager.EventName.Guide_ClickFloor, OnClickFloor);
|
||||
}
|
||||
|
||||
protected override void DoBeforeComplete()
|
||||
{
|
||||
EventManager.Instance.Unregister<int>(EventManager.EventName.Guide_ClickFloor, OnClickFloor);
|
||||
EventManager.Instance.Unregister<int>(EventManager.EventName.Guide_ClickFloor, OnSetFightSpeed);
|
||||
|
||||
base.DoBeforeComplete();
|
||||
|
|
@ -283,6 +285,14 @@ namespace Gameplay.Guide
|
|||
LevelManager.Instance.CurrentLevel.SetSpeed(ELevelSpeed.DEFAULT_SPEED);
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnClickFloor(int cellIndex)
|
||||
{
|
||||
if (cellIndex != floorIndex)
|
||||
return;
|
||||
|
||||
await UI_GuideController.Open();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue