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