Ejemplo n.º 1
0
        private IEnumerator GreetingOhyodo(KeyControl keyController, Action onFinishedGreeting)
        {
            UIDutyOhyodo ohyodo = Util.Instantiate(mPrefab_DutyOhyodo.gameObject, mModalCamera.gameObject).GetComponent <UIDutyOhyodo>();
            bool         show   = false;

            ohyodo.Show(delegate
            {
                show = true;
            });
            while (!show)
            {
                yield return(null);
            }
            while (!Input.anyKey)
            {
                yield return(null);
            }
            ohyodo.EnableTouchBackArea(enabled: true);
            ohyodo.Hide(delegate
            {
                onFinishedGreeting();
                UnityEngine.Object.Destroy(ohyodo.gameObject);
            });
            yield return(null);
        }
Ejemplo n.º 2
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;
 }