Exemplo n.º 1
0
        public override void Core()
        {
            if (base.active)
            {
                if (this._mode == TutorialBranchAttackMode.ReadyForTiming)
                {
                    if (this._avatar.GetCurrentNormalizedTime() > this._delayTime)
                    {
                        this._mode = TutorialBranchAttackMode.Attacking;
                        Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.EvadeBtnVisible, false));

                        Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.UltraBtnVisible, false));

                        Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.SwapBtnVisible, false));

                        this.ShowStep5Tutorial();
                    }
                }
                else if (this._mode == TutorialBranchAttackMode.Done)
                {
                    this.Finish();
                }
                if ((this._isInBranchAttack && this.IsInStep(4)) && (!this.IsAllStepDone() && (this._avatar.CurrentSkillID == "ATK04")))
                {
                    this._isBranchAttackDone = true;
                    this._isInBranchAttack   = false;
                }
            }
        }
Exemplo n.º 2
0
 public LevelTutorialBranchAttack(LevelTutorialHelperPlugin helper, LevelTutorialMetaData metaData) : base(helper, metaData)
 {
     this._finished           = false;
     this._isBranchAttackDone = false;
     this._isInBranchAttack   = false;
     this._delayTime          = this.GetDelayTime(base.step);
     this._mode = TutorialBranchAttackMode.Start;
 }
Exemplo n.º 3
0
 public void OnStep5Done()
 {
     this._mode = TutorialBranchAttackMode.AfterAttack;
     this.MoveToNextStep();
     this.ResumeGame();
     if (((base.step == 5) && (base.GetCurrentStepState() == BaseLevelTutorial.StepState.Sleep)) && !this.IsAllStepDone())
     {
         this.ActiveCurrentStep();
         this.WaitShowTutorialStep(this.GetDelayTime(base.step), new Action(this.ShowStep6Tutorial));
     }
 }
Exemplo n.º 4
0
        public void OnStep6Done()
        {
            this.MoveToNextStep();
            Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.EvadeBtnVisible, true));

            Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.UltraBtnVisible, true));

            Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.SwapBtnVisible, true));

            this.ResumeGame();
            this._mode = TutorialBranchAttackMode.Done;
        }
Exemplo n.º 5
0
 public bool OnStep5PoointerUp()
 {
     if (!this._isBranchAttackDone)
     {
         this.PauseGame();
     }
     else
     {
         this._mode = TutorialBranchAttackMode.AfterAttack;
         this.MoveToNextStep();
         if (((base.step == 5) && (base.GetCurrentStepState() == BaseLevelTutorial.StepState.Sleep)) && !this.IsAllStepDone())
         {
             this.ActiveCurrentStep();
             this.WaitShowTutorialStep(this.GetDelayTime(base.step), new Action(this.ShowStep6Tutorial));
         }
     }
     return(this._isBranchAttackDone);
 }
Exemplo n.º 6
0
 private void EnterReadyForBranchAttack()
 {
     this._mode = TutorialBranchAttackMode.ReadyForTiming;
     this.ActiveCurrentStep();
     this.SetControllerEnable(false);
 }