public static void ProjectilePlayerCollision(IProjectile proj, IMario player) { if (player.CurrentState is DeadMarioState) return; if (!proj.CanHarmPlayers()) return; player.TakeDamage(); proj.Delete(); }