StartScene() public method

public StartScene ( ) : void
return void
Exemplo n.º 1
0
    // Use this for initialization
    void Start() {
        messageManager = MessageManager.GetComponent<MessageManager>();
        /*
        levelData = GameData.getLevelData(previousScene);

        timeText.text = levelData.finishTime+"";
        totalCollectiblesText.text = levelData.collectibles.Count+"";
        
        int actualCollectibles = 0;
        foreach (string collId in levelData.collectibles)
        {
            if(GameData.AlreadyCollected(collId))
            {
                actualCollectibles++;
            }
        }

        actualCollectiblesText.text = actualCollectibles + "";
        */
        fader = GetComponent<SceneFade>();
        fader.nextScene = nextScene;
        fader.StartScene();

        Invoke("StartMessages", fader.fadeSpeed * 2);
    }