Beispiel #1
0
    void SceneLoaded(Scene scene, LoadSceneMode loadSceneMode)
    {
        // Print the name of the scene on load
        if (scene.name == "SceneGamePlay")
        {
            print(scene.name + " " + "Level " + currLevel + " loaded...");
            LevelParser.Load(currLevel);
        }

        if (scene.name == "SceneLevelSelection")
        {
            print(scene.name + " loaded...");
        }
    }
Beispiel #2
0
 void Start()
 {
     LevelParser.Load(0);
     instruction = GameObject.Find("Canvas").transform.Find("Instruction").GetComponent <Text> ();
 }