Ejemplo n.º 1
0
 private void ClearEvents()
 {
     if (OnCreatureDie != null)
     {
         foreach (var d in OnCreatureDie.GetInvocationList())
         {
             OnCreatureDie -= (CreatureEvent)d;
         }
     }
 }
Ejemplo n.º 2
0
 public void OnCreatureDeath(CreatureController c)
 {
     OnCreatureDie?.Invoke(c);
 }