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; } } }
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; }
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)); } }
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; }
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); }
private void EnterReadyForBranchAttack() { this._mode = TutorialBranchAttackMode.ReadyForTiming; this.ActiveCurrentStep(); this.SetControllerEnable(false); }