コード例 #1
0
 private static void CollidePlayerEnemy(PlayerVerticalShooter player, EnemyShip enemy)
 {
     player.InflictDamage(enemy);
     enemy.InflictDamage(player);
 }
コード例 #2
0
 private static void CollideEnemyAlly(EnemyShip enemy, AlliedShip ally)
 {
     enemy.InflictDamage(ally);
     ally.InflictDamage(enemy);
 }
コード例 #3
0
 private static void CollideBulletEnemy(PlayerBullet bullet, EnemyShip enemy)
 {
     bullet.InflictDamage(enemy);
     enemy.LastHitBy = bullet.Tracker;
     enemy.InflictDamage(bullet);
 }