private void PlaceMine(GameTime gameTime) { skjutTimer += gameTime.ElapsedGameTime.Milliseconds; if (lever && skjutTimer >= 5000) { Mina s = new Mina(game, spriteSheet); s.Position = Position; runningState.addObjektLista.Add(s); skjutTimer = 0; } }
private void PlaceMine(GameTime gameTime) { minTimer += gameTime.ElapsedGameTime.Milliseconds; if (lever && minTimer >= 2000) { Mina s = new Mina(game, spriteSheet); s.Position = Position; game.levelState.addObjektLista.Add(s); minTimer = 0; } }