コード例 #1
0
 public void Update(GameTime gameTime)
 {
     for (int i = strandeds.Count - 1; i >= 0; i--)
     {
         strandeds[i].Update(gameTime);
         if (respawnManager.OutOfBounds(strandeds[i].position))
         {
             strandeds.RemoveAt(i);
         }
     }
     TopUpStrandeds();
 }
コード例 #2
0
 public void Update(GameTime gameTime)
 {
     for (int i = asteroids.Count - 1; i >= 0; i--)
     {
         asteroids[i].Update(gameTime);
         if (respawnManager.OutOfBounds(asteroids[i].position))
         {
             RemoveAsteroids(i);
         }
     }
     TopUpAsteroids();
 }