Esempio n. 1
0
        public void Reset()
        {
            (Globals.ActiveScene.ActiveObjects.First(x => x is Player) as Player).Reset(PlayerStart);
            AquiredCoins = 0;
            ActiveObjects.ForEach(x =>
                                      {
                                          if (!(x is Coin))
                                              return;

                                          ActiveObjects.Remove(x);
                                      });
            ActiveObjects.AddRange(GetCoins());
        }
Esempio n. 2
0
 public virtual void Draw(GameTime gameTime)
 {
     ActiveObjects.ForEach(x => x.Draw(gameTime));
 }
Esempio n. 3
0
 public virtual void Update(GameTime gameTime)
 {
     InputManager.Update();
     ActiveObjects.ForEach(x => x.Update(gameTime));
 }