private void CallBackAction(ActionType actionType, UIMissionWithTankerConfirmPopUp calledObject)
 {
     if (mUIMissionWithTankerConfirmPopUpAction != null)
     {
         mUIMissionWithTankerConfirmPopUpAction(actionType, calledObject);
     }
 }
    private void ShowMissionWithTankerConfirmPopUp(MissionModel missionModel)
    {
        SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
        mUIMissionScrollListParent.EnableTouchControl = false;
        UIMissionWithTankerConfirmPopUp component = Util.Instantiate(mPrefab_UIMissionWithTankerConfirmPopUp.gameObject, mModalCamera.gameObject).GetComponent <UIMissionWithTankerConfirmPopUp>();

        component.SetOnUIMissionWithTankerConfirmPopUpAction(UIMissionWithTankerConfirmPopUpAction);
        ChangeFocusKeyController(null);
        component.Initialize(mMissionManager.UserInfo.GetDeck(mDeckId), missionModel, mMissionManager.TankerCount);
    }
    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 OnDestroy()
 {
     mMissionManager            = null;
     mFocusKeyController        = null;
     ConfirmPopUp               = null;
     mUIMissionScrollListParent = null;
     mPrefab_UIMissionWithTankerDescriptionPopUp = null;
     mPrefab_UIMissionWithTankerConfirmPopUp     = null;
     mPrefab_UIMissionStateChangedCutIn          = null;
     mModalCamera     = null;
     mUIMissionHeader = null;
 }