/// <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); } }
public void TriggerEntityDied(DeathEventData data) { EntityDied?.Invoke(data); }