Пример #1
0
        private bool ListenFieldExit(EvtFieldExit evt)
        {
            if (this._isSmokeOn)
            {
                BaseAbilityActor actor = Singleton <EventManager> .Instance.GetActor <BaseAbilityActor>(evt.otherID);

                if (evt.targetID == this._alliedFieldActor.runtimeID)
                {
                    this.OnAlliedExit(actor);
                    return(true);
                }
                if (evt.targetID == this._enemyFieldActor.runtimeID)
                {
                    this.OnEnemyExit(actor);
                    return(true);
                }
            }
            return(false);
        }
Пример #2
0
 public virtual bool OnFieldExit(EvtFieldExit evt)
 {
     this._insideRuntimes.Remove(evt.otherID);
     return(true);
 }