예제 #1
0
        /// <summary>
        /// Invokes the EntityDied event
        /// </summary>
        /// <param name="args">The event args</param>
        protected virtual void OnDeath(CacheObjectEventArgs args)
        {
            var handler = EntityDied;

            if (handler != null)
            {
                EntityDied.Invoke(this, args);
            }
        }
예제 #2
0
 public void TriggerEntityDied(DeathEventData data)
 {
     EntityDied?.Invoke(data);
 }