Exemplo n.º 1
0
        protected override void LoadContent()
        {
            SpriteBatch = new SpriteBatch(GraphicsDevice);
            TextureManager.LoadTextures(Content);

            MainMenuManager      = new MainMenuManager(this);
            GamePlayManager      = new GamePlayManager();
            StoryMode            = new StoryMode();
            GameOverManager      = new GameOverManager(this);
            MapMakerManager      = new MapMakerManager(this);
            ButtonManager        = new ButtonManager();
            HighScoreDisplay     = new HighScoreDisplay();
            LevelSelectorManager = new LevelSelectorManager();
            PauseManager         = new PauseManager();
            MusicManager         = new MusicManager();
            MainMenuManager.Init();
            ButtonManager.Init();
            MusicManager.Init();
        }
Exemplo n.º 2
0
 void Start()
 {
     highScore = GetComponentInChildren <HighScoreDisplay>();
     gameOver  = GameObject.Find("GameOver/Canvas");
     gameOver.SetActive(false);
 }