/// <summary>
 /// Sends this object and the tag of the other object in the collision.
 /// </summary>
 private void RaiseHitSomething(string tag)
 {
     if (HitSomething != null)
     {
         HitSomething.Invoke(tag);
     }
 }
 public void OnHitSomething(CombatEvent combatEvent)
 {
     HitSomething?.Invoke(combatEvent);
     MainMode.AddCombatEvent(combatEvent);
 }
Beispiel #3
0
 /// <summary>
 /// Occures when snake hit something
 /// </summary>
 protected virtual void OnHitSomething(Region reg)
 {
     HitSomething?.Invoke(this, reg);
 }