public static GameLogic GetInstance() { if (_gameLogic == null) { _gameLogic = new GameLogic(); _gameLogic.Start(Game1.GetGame()); } return _gameLogic; }
private static void LevelOne(Game game, GameLogic gameLogic, ArrayList enemies) { for (int i = 0; i < 3; i++) { Chure chure = new Chure(game); chure.SetPosition(new Vector2((game.GraphicsDevice.Viewport.Width/3) * i + chure.Bounds().Width, -20)); game.Components.Add(chure); enemies.Add(chure); } Thege thege = new Thege(game); game.Components.Add(thege); enemies.Add(thege); Sinode sinode = new Sinode(game); game.Components.Add(sinode); enemies.Add(sinode); }