示例#1
0
        public void update(GameTime gameTime)
        {
            for (int i = 0; i < stars.Count; i++)
            {
                stars[i].update(gameTime);

                if (CollisionCheck.collisionCheck(stars[i].Destination, Player.collisionRectangle()))
                {
                    stars.RemoveAt(i);
                    Player.collectedStar(true);
                    Sounds.playSound("Pickup_Star", 0.5f);
                }
            }
        }