Exemplo n.º 1
0
    //This is the only script that should start anything
    void Start()
    {
        screenManager.StartScreenManager(this);

        if (skipOpening)
        {
            //Hide all the other menu screens to skip straight to gameplay
            screenManager.ChangeCurrentScreen(GameScreens.GameScreen);

            //Start the game music
            gameEvents.RampAudio(MusicEvent.Base);

            //Start moving everything
            gameLaunch.worldMover.StartMoving();
            gamePlaying = true;
        }
        else
        {
            //Start the game music
            gameEvents.RampAudio(MusicEvent.Base);

            //Start everything
            screenManager.StartScreenManager(this);
            gameLaunch.BeginSequence(this);
        }
    }