private KeyControl ShowUIDetailCheck(UIDutySummary summary) { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; UIDutyDetailCheck dutyDetail = null; dutyDetail = Util.Instantiate(mPrefabDutyDetailCheck.gameObject, mModalCamera.gameObject).GetComponent <UIDutyDetailCheck>(); dutyDetail.Initialize(summary.GetModel()); dutyDetail.SetDutyDetailCheckClosedCallBack(delegate { 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()); }
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; }