Exemplo n.º 1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            _splashScreen = new SplashScreen(Content, graphics);
            _splashScreen.Current = true;
            _gameScreen = new GameScreen(Content, graphics);
            _menuScreen = new MenuScreen(Content, graphics);
            _gameOverScreen = new GameOverScreen(Content, graphics);
            _creditoScreen = new CreditoScreen(Content, graphics);
            _rankingScreen = new RankingScreen(Content, graphics);

            Pontuacao();

            base.Initialize();
        }
    private void Awake()
    {
        instance = this;

        Show();
    }
Exemplo n.º 3
0
 public void Show(RankingScreen rankingScreen)
 {
     input.SetTextData(rankingScreen.input);
     notice.SetTextData(rankingScreen.notice);
 }