Exemplo n.º 1
0
 public void update(GameTime gameTime)
 {
     for (int i = 0; i < keys.Count; i++)
     {
         keys[i].update(gameTime);
         if (CollisionCheck.collisionCheck(Player.collisionRectangle(), keys[i].Destination))
         {
             Player.m_hasKey = true;
             Player.collectedKey(true);
             Sounds.playSound("Pickup_Key", 0.10f);
             keys.RemoveAt(i);
         }
     }
 }