Exemple #1
0
 public void CheckCollisions(Character c)
 {
     if (this.CollidedWith(c))
     {
         CharacterCollisionEventArgs e = new CharacterCollisionEventArgs
         {
             CollidedWith = c
         };
         OnCollisionC(e); //Fire a collision event
     }
 }
Exemple #2
0
 private void OnCollisionC(CharacterCollisionEventArgs e)
 {
     OnCharacterCollision?.Invoke(this, e);
 }