예제 #1
0
        public void Death(RealmTime time)
        {
            State state = CurrentState;

            if (state == null)
            {
                Log.Warn($"Enemy '{Name}' doesn't have any behavior declaration.");
                counter.Dispose();
            }
            else
            {
                counter.Death(time);
                state.OnDeath(new BehaviorEventArgs(this, time));
            }

            Owner.LeaveWorld(this);
        }