コード例 #1
0
 private void OnDestroy()
 {
     if (DOTween.IsTweening(mLabel_DutyCount))
     {
         DOTween.Kill(mLabel_DutyCount);
     }
     if (DOTween.IsTweening(mTexture_LeftArrow))
     {
         DOTween.Kill(mTexture_LeftArrow);
     }
     if (DOTween.IsTweening(mTexture_RightArrow))
     {
         DOTween.Kill(mTexture_RightArrow);
     }
     if (DOTween.IsTweening(mTexture_LeftArrowShadow))
     {
         DOTween.Kill(mTexture_LeftArrowShadow);
     }
     if (DOTween.IsTweening(mTexture_RightArrowShadow))
     {
         DOTween.Kill(mTexture_RightArrowShadow);
     }
     UserInterfacePortManager.ReleaseUtils.Releases(ref mTextures_Preload);
     UserInterfacePortManager.ReleaseUtils.Release(ref mLabel_DutyCount);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_LeftArrow);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_RightArrow);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_LeftArrowShadow);
     UserInterfacePortManager.ReleaseUtils.Release(ref mTexture_RightArrowShadow);
     mTransform_AllClearText            = null;
     mPrefabDutyDetail                  = null;
     mPrefabDutyDetailCheck             = null;
     mPrefabUIDutyRewardMaterialsDialog = null;
     mPrefabRewardShip                  = null;
     mModalCamera        = null;
     mPrefab_DutyOhyodo  = null;
     mDutyGrid           = null;
     mDutyManager        = null;
     mFocusKeyController = null;
 }
コード例 #2
0
        private KeyControl ShowUIDutyDetail(UIDutySummary summary)
        {
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
            UIDutyDetail dutyDetail = null;

            _DeteilMode = true;
            dutyDetail  = Util.Instantiate(mPrefabDutyDetail.gameObject, mModalCamera.gameObject).GetComponent <UIDutyDetail>();
            dutyDetail.Initialize(summary.GetModel());
            dutyDetail.SetDutyDetailCallBack(delegate(UIDutyDetail.SelectType selectedType)
            {
                if (selectedType == UIDutyDetail.SelectType.Positive)
                {
                    mDutyManager.StartDuty(summary.GetModel().No);
                    UpdateOrderPossibleDutyCount(mDutyManager.MaxExecuteCount - mDutyManager.GetExecutedDutyList().Count, animate: true);
                    DutyModel duty = mDutyManager.GetDuty(summary.GetModel().No);
                    summary.Initialize(summary.GetIndex(), duty);
                    TutorialModel tutorial = mDutyManager.UserInfo.Tutorial;
                    if (tutorial.GetStep() == 0 && !tutorial.GetStepTutorialFlg(1))
                    {
                        tutorial.SetStepTutorialFlg(1);
                        CommonPopupDialog.Instance.StartPopup("「はじめての任務!」 達成");
                        SoundUtils.PlaySE(SEFIleInfos.SE_012);
                    }
                }
                dutyDetail.Hide(delegate
                {
                    _DeteilMode = false;
                    SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
                    KeyControl keyController = mDutyGrid.GetKeyController();
                    UnityEngine.Object.Destroy(dutyDetail.gameObject);
                    mModalCamera.Close();
                    ChangeKeyController(keyController);
                });
            });
            return(dutyDetail.Show());
        }