private void UIMissionWithTankerConfirmPopUpAction(UIMissionWithTankerConfirmPopUp.ActionType actionType, UIMissionWithTankerConfirmPopUp calledObject) { ConfirmPopUp = calledObject; SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; switch (actionType) { case UIMissionWithTankerConfirmPopUp.ActionType.Hiden: break; case UIMissionWithTankerConfirmPopUp.ActionType.Shown: { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; KeyControl keyController = calledObject.GetKeyController(); ChangeFocusKeyController(keyController); break; } case UIMissionWithTankerConfirmPopUp.ActionType.NotStartMission: if (calledObject.Opend) { UnityEngine.Object.Destroy(calledObject.gameObject); mModalCamera.Close(); mUIMissionScrollListParent.EnableTouchControl = true; ChangeFocusKeyController(mUIMissionScrollListParent.GetKeyController()); } break; case UIMissionWithTankerConfirmPopUp.ActionType.StartMission: if (calledObject.Opend) { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; UnityEngine.Object.Destroy(calledObject.gameObject); mModalCamera.Close(); ChangeFocusKeyController(null); if (mMissionManager.IsValidMissionStart(calledObject.MissionStartDeckModel.Id, calledObject.MissionStartTargetModel.Id, calledObject.SettingTankerCount).Count == 0) { mMissionManager.MissionStart(calledObject.MissionStartDeckModel.Id, calledObject.MissionStartTargetModel.Id, calledObject.SettingTankerCount); ShowCutin(mMissionManager.UserInfo.GetDeck(mDeckId), delegate { BackToStrategy(); }); } } break; case UIMissionWithTankerConfirmPopUp.ActionType.ShowDetail: if (calledObject.Opend) { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; ShowMissionWithTankerDescriptionPopUp(calledObject.MissionStartTargetModel); } break; } }
private void UIMissionWithTankerDescriptionPopUpAction(UIMissionWithTankerDescriptionPopUp.ActionType actionType, UIMissionWithTankerDescriptionPopUp calledObject) { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; switch (actionType) { case UIMissionWithTankerDescriptionPopUp.ActionType.Shown: SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; TweenAlpha.Begin(ConfirmPopUp.gameObject, 0.2f, 0f); break; case UIMissionWithTankerDescriptionPopUp.ActionType.Hiden: { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; KeyControl keyController = ConfirmPopUp.GetKeyController(); ChangeFocusKeyController(keyController); UnityEngine.Object.Destroy(calledObject.gameObject); mModalCamera.Close(); TweenAlpha.Begin(ConfirmPopUp.gameObject, 0f, 1f); break; } } }