예제 #1
0
 private bool ListenAvatarSwapOut(EvtAvatarSwapOutStart evt)
 {
     if (((evt.targetID == base.actor.runtimeID) && this._timer.isActive) && (!this._timer.isTimeUp && this.config.DestoryAfterSwitch))
     {
         this.StopField();
     }
     return(false);
 }
예제 #2
0
 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);
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }