private bool ListenTutorialState(EvtTutorialState evt) { if ((((evt != null) && (evt.state == EvtTutorialState.State.Start)) && ((base.step == 0) && (base.GetCurrentStepState() == BaseLevelTutorial.StepState.Sleep))) && !this.IsAllStepDone()) { this.ActiveCurrentStep(); this.WaitShowTutorialStep(this.GetDelayTime(base.step), new Action(this.ShowTutorialStep1)); } return(false); }
private bool ListenTutorialState(EvtTutorialState evt) { if ((evt != null) && (evt.state == EvtTutorialState.State.Start)) { this._actor = Singleton <EventManager> .Instance.GetActor <AvatarActor>(Singleton <AvatarManager> .Instance.GetLocalAvatar().GetRuntimeID()); if (this._actor == null) { return(false); } this.WaitShowTutorialStep(0.5f, new Action(this.StartCheckStageReady)); } return(false); }
private bool ListenTutorialState(EvtTutorialState evt) { if ((evt != null) && (evt.state == EvtTutorialState.State.Start)) { List <BaseMonoAvatar> allPlayerAvatars = Singleton <AvatarManager> .Instance.GetAllPlayerAvatars(); if (((allPlayerAvatars.Count == 2) && (allPlayerAvatars[0].AvatarTypeName == "Kiana_C2_PT")) && (allPlayerAvatars[1].AvatarTypeName == "Mei_C2_CK")) { this._isTutorialAvailable = true; } if (this._isTutorialAvailable) { this.SetupAvatarId(); } else { this.Finish(); } } return(false); }