Ejemplo 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());
        }
Ejemplo n.º 2
0
 public virtual void Draw(GameTime gameTime)
 {
     ActiveObjects.ForEach(x => x.Draw(gameTime));
 }
Ejemplo n.º 3
0
 public virtual void Update(GameTime gameTime)
 {
     InputManager.Update();
     ActiveObjects.ForEach(x => x.Update(gameTime));
 }