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