public override void Show(UIScene.SceneVoidDelegate afterFinished = null) { UIScene.SceneVoidDelegate sceneVoidDelegate = delegate() { PersistenSingleton <UIManager> .Instance.SetEventEnable(true); PersistenSingleton <UIManager> .Instance.SetMenuControlEnable(PersistenSingleton <EventEngine> .Instance.GetUserControl() && EventInput.IsMenuON && EventInput.IsMovementControl); PersistenSingleton <UIManager> .Instance.SetPlayerControlEnable(PersistenSingleton <EventEngine> .Instance.GetUserControl(), null); this.PauseButtonGameObject.SetActive(PersistenSingleton <UIManager> .Instance.IsPauseControlEnable && FF9StateSystem.MobilePlatform); ButtonGroupState.HelpEnabled = false; }; if (afterFinished != null) { sceneVoidDelegate = (UIScene.SceneVoidDelegate)Delegate.Combine(sceneVoidDelegate, afterFinished); } base.Show(sceneVoidDelegate); PersistenSingleton <UIManager> .Instance.Booster.SetBoosterState(PersistenSingleton <UIManager> .Instance.UnityScene); VirtualAnalog.Init(base.gameObject); VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.gameObject); VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.Dialogs.gameObject); VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.Booster.OutsideBoosterHitPoint); PersistenSingleton <UIManager> .Instance.SetGameCameraEnable(true); }
public override void Show(SceneVoidDelegate afterFinished = null) { SceneVoidDelegate action = OnShownAction; if (afterFinished != null) { action = (SceneVoidDelegate)Delegate.Combine(action, afterFinished); } base.Show(action); PersistenSingleton <UIManager> .Instance.Booster.SetBoosterState(PersistenSingleton <UIManager> .Instance.UnityScene); VirtualAnalog.Init(gameObject); VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.gameObject); VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.Dialogs.gameObject); VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.Booster.OutsideBoosterHitPoint); PersistenSingleton <UIManager> .Instance.SetGameCameraEnable(true); }