private bool ListenAvatarSwapOut(EvtAvatarSwapOutStart evt) { if (((evt.targetID == base.actor.runtimeID) && this._timer.isActive) && (!this._timer.isTimeUp && this.config.DestoryAfterSwitch)) { this.StopField(); } return(false); }
private bool OnSwitchOutStart(EvtAvatarSwapOutStart evt) { if (base.actor.runtimeID == evt.targetID) { base.actor.abilityPlugin.HandleActionTargetDispatch(this.config.SwitchOutActions, base.instancedAbility, base.instancedModifier, Singleton <EventManager> .Instance.GetActor <BaseAbilityActor>(evt.targetID), evt); } return(true); }
private bool ListenAvatarSwapOut(EvtAvatarSwapOutStart evt) { if (Singleton <AvatarManager> .Instance.IsLocalAvatar(evt.targetID)) { BaseMonoAvatar localAvatar = Singleton <AvatarManager> .Instance.GetLocalAvatar(); localAvatar.onAnimatorStateChanged = (Action <AnimatorStateInfo, AnimatorStateInfo>)Delegate.Remove(localAvatar.onAnimatorStateChanged, new Action <AnimatorStateInfo, AnimatorStateInfo>(this.OnLocalAvatarAnimatorStateChnage)); } return(false); }
private bool ListenAvatarSwapOutStart(EvtAvatarSwapOutStart evt) { BaseMonoAvatar avatarByRuntimeID = Singleton <AvatarManager> .Instance.GetAvatarByRuntimeID(evt.targetID); if (avatarByRuntimeID != null) { avatarByRuntimeID.onAttackTargetChanged = (Action <BaseMonoEntity>)Delegate.Remove(avatarByRuntimeID.onAttackTargetChanged, new Action <BaseMonoEntity>(this.OnUpdateAttackTarget)); } return(false); }
private bool ListenAvatarSwapOutStart(EvtAvatarSwapOutStart evt) { AvatarStastics avatarStastics = this.GetAvatarStastics(evt.targetID); if (avatarStastics != null) { avatarStastics.swapOutTimes = SafeInt32.op_Increment(avatarStastics.swapOutTimes); avatarStastics.isOnStage = 0; AvatarActor actor = Singleton <EventManager> .Instance.GetActor <AvatarActor>(Singleton <AvatarManager> .Instance.GetLocalAvatar().GetRuntimeID()); actor.onSPChanged = (Action <float, float, float>)Delegate.Remove(actor.onSPChanged, new Action <float, float, float>(this.OnSPChanged)); } return(true); }