private void ShowMissionWithTankerDescriptionPopUp(MissionModel model) { mUIMissionScrollListParent.EnableTouchControl = false; UIMissionWithTankerDescriptionPopUp component = Util.Instantiate(mPrefab_UIMissionWithTankerDescriptionPopUp.gameObject, mModalCamera.gameObject).GetComponent <UIMissionWithTankerDescriptionPopUp>(); mModalCamera.Show(); component.Initialize(model); component.SetOnUIMissionWithTankerDescriptionPopUpAction(UIMissionWithTankerDescriptionPopUpAction); component.Show(); ChangeFocusKeyController(component.GetKeyController()); }
private void OnDestroy() { mMissionManager = null; mFocusKeyController = null; ConfirmPopUp = null; mUIMissionScrollListParent = null; mPrefab_UIMissionWithTankerDescriptionPopUp = null; mPrefab_UIMissionWithTankerConfirmPopUp = null; mPrefab_UIMissionStateChangedCutIn = null; mModalCamera = null; mUIMissionHeader = null; }
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; } } }