private bool OnSwitchInEnd(EvtAvatarSwapInEnd evt) { if (base.actor.runtimeID == evt.targetID) { base.actor.abilityPlugin.HandleActionTargetDispatch(this.config.SwitchInActions, base.instancedAbility, base.instancedModifier, Singleton <EventManager> .Instance.GetActor <BaseAbilityActor>(evt.targetID), evt); } return(true); }
private bool ListenAvatarSwapIn(EvtAvatarSwapInEnd evt) { if (Singleton <AvatarManager> .Instance.IsLocalAvatar(evt.targetID)) { BaseMonoAvatar localAvatar = Singleton <AvatarManager> .Instance.GetLocalAvatar(); localAvatar.onAnimatorStateChanged = (Action <AnimatorStateInfo, AnimatorStateInfo>)Delegate.Combine(localAvatar.onAnimatorStateChanged, new Action <AnimatorStateInfo, AnimatorStateInfo>(this.OnLocalAvatarAnimatorStateChnage)); } return(false); }
private bool ListenSwapInEnd(EvtAvatarSwapInEnd evt) { this.targetSwapAvatarId = this.sourceSwapAvatarId; if ((this.IsInStep(10) && (base.GetCurrentStepState() == BaseLevelTutorial.StepState.Sleep)) && !this.IsAllStepDone()) { this.ActiveCurrentStep(); this.WaitShowTutorialStep(this.GetDelayTime(base.step), new Action(this.ShowTutorialStep10)); } return(false); }
private bool ListenAvatarSwapInEnd(EvtAvatarSwapInEnd evt) { BaseMonoAvatar avatarByRuntimeID = Singleton <AvatarManager> .Instance.GetAvatarByRuntimeID(evt.targetID); if (avatarByRuntimeID != null) { avatarByRuntimeID.onAttackTargetChanged = (Action <BaseMonoEntity>)Delegate.Combine(avatarByRuntimeID.onAttackTargetChanged, new Action <BaseMonoEntity>(this.OnUpdateAttackTarget)); } return(false); }
private bool ListenAvatarSwapInEnd(EvtAvatarSwapInEnd evt) { AvatarStastics avatarStastics = this.GetAvatarStastics(evt.targetID); if (avatarStastics != null) { avatarStastics.swapInTimes = SafeInt32.op_Increment(avatarStastics.swapInTimes); avatarStastics.isOnStage = 1; AvatarActor actor = Singleton <EventManager> .Instance.GetActor <AvatarActor>(Singleton <AvatarManager> .Instance.GetLocalAvatar().GetRuntimeID()); actor.onSPChanged = (Action <float, float, float>)Delegate.Combine(actor.onSPChanged, new Action <float, float, float>(this.OnSPChanged)); } return(true); }