private void OnCommitDeckPractice(DeckPracticeContext context)
 {
     if (this.mOnCommitDeckPracticeListener != null)
     {
         this.mOnCommitDeckPracticeListener.Invoke(context);
     }
 }
예제 #2
0
 private void OnCommitDeckPractice(DeckPracticeContext context)
 {
     if (mOnCommitDeckPracticeListener != null)
     {
         mOnCommitDeckPracticeListener(context);
     }
 }
예제 #3
0
 private void OnDestroy()
 {
     mDeckPracticeTypeSelect = null;
     mStateManager           = null;
     mPracticeManager        = null;
     mKeyController          = null;
     mOnBackListener         = null;
     mDeckPracticeContext    = null;
 }
예제 #4
0
 public void Initialize(PracticeManager practiceManager)
 {
     mStateManager          = new StateManager <State>(State.NONE);
     mStateManager.OnPush   = OnPushState;
     mStateManager.OnPop    = OnPopState;
     mStateManager.OnResume = OnResumeState;
     mStateManager.OnSwitch = OnChangedState;
     mPracticeManager       = practiceManager;
     mDeckPracticeContext   = new DeckPracticeContext();
     mDeckPracticeContext.SetFriendDeck(mPracticeManager.CurrentDeck);
 }
 public void Initialize(PracticeManager practiceManager)
 {
     this.mStateManager          = new StateManager <UIDeckPracticeManager.State>(UIDeckPracticeManager.State.NONE);
     this.mStateManager.OnPush   = new Action <UIDeckPracticeManager.State>(this.OnPushState);
     this.mStateManager.OnPop    = new Action <UIDeckPracticeManager.State>(this.OnPopState);
     this.mStateManager.OnResume = new Action <UIDeckPracticeManager.State>(this.OnResumeState);
     this.mStateManager.OnSwitch = new Action <UIDeckPracticeManager.State>(this.OnChangedState);
     this.mPracticeManager       = practiceManager;
     this.mDeckPracticeContext   = new DeckPracticeContext();
     this.mDeckPracticeContext.SetFriendDeck(this.mPracticeManager.CurrentDeck);
 }
 private void OnDeckPracticeProductionStateChangeListener(UIDeckPracticeProductionManager.State state)
 {
     if (state == UIDeckPracticeProductionManager.State.EndOfPractice)
     {
         StrategyTopTaskManager.Instance.UIModel.Character.GetWidth();
         int num = 960;
         StrategyTopTaskManager.Instance.UIModel.Character.transform.DOLocalMoveX(num, 0.5f).SetEase(Ease.InCubic);
         DeckPracticeContext context = mUIDeckPracticeManager.GetContext();
         string empty = string.Empty;
         string text  = Util.DeckPracticeTypeToString(context.PracticeType) + "演習-結果";
         mPracticeHeader.UpdateHeaderText(text);
     }
 }
        private IEnumerator OnCommitDeckPracticeStartCoroutine(DeckPracticeContext context)
        {
            DeckPracticeType type = context.PracticeType;
            string           practiceTypeToString = Util.DeckPracticeTypeToString(type);

            mPracticeHeader.UpdateHeaderText(practiceTypeToString + "演習\u3000参加中");
            yield return(new WaitForEndOfFrame());

            DeckPracticeResultModel result = mPracticeManager.StartDeckPractice(context.PracticeType);

            yield return(new WaitForEndOfFrame());

            mUIDeckPracticeProductionManager.SetKeyController(mKeyController);
            IEnumerator initializeCoroutine = mUIDeckPracticeProductionManager.InitializeCoroutine(mPracticeManager.CurrentDeck, result);

            yield return(StartCoroutine(initializeCoroutine));

            mUIDeckPracticeProductionManager.SetOnChangeStateListener(OnDeckPracticeProductionStateChangeListener);
            IEnumerator playVoiceAndLive2DMotionCoroutine = GeneratePlayVoiceAndLive2DMotionCoroutine(mPracticeManager.CurrentDeck.GetFlagShip(), 14, OnFinishedPlayVoiceAndLive2DMotion);

            yield return(StartCoroutine(playVoiceAndLive2DMotionCoroutine));
        }
예제 #8
0
 public void Release()
 {
     mPracticeManager     = null;
     mDeckPracticeContext = null;
     mStateManager        = null;
 }
        private void OnCommitDeckPracticeStart(DeckPracticeContext context)
        {
            IEnumerator routine = OnCommitDeckPracticeStartCoroutine(context);

            StartCoroutine(routine);
        }
 public void Release()
 {
     this.mPracticeManager     = null;
     this.mDeckPracticeContext = null;
     this.mStateManager        = null;
 }