예제 #1
0
 private static void ExecuteAttack(Tank tankA, Tank tankB)
 {
     while (tankB.Health > 0)
     {
         tankA.Shoot(tankB);
     }
 }
 private static void ExecuteAttack(Tank tankA, Tank tankB)
 {
     while (tankB.Health > 0)
     {
         tankA.Shoot(tankB);
     }
 }