b3agz / Code-A-Game-Like-Minecraft-In-Unity

Project files for a Youtube tutorial series on coding a game like Minecraft in Unity.
298 stars 237 forks source link

Scene "main" renamed to "World" but never changed in TitleMenu #18

Open Stinosko opened 3 years ago

Stinosko commented 3 years ago

Like the title in episode 22 you changed the name of the main scene back to World but never changed in inside the TitleMenu.cs code, line 53:


public void StartGame() {

        VoxelData.seed = Mathf.Abs(seedField.text.GetHashCode()) / VoxelData.WorldSizeInChunks;
        SceneManager.LoadScene("main", LoadSceneMode.Single);

    }

Should be:

public void StartGame() {

        VoxelData.seed = Mathf.Abs(seedField.text.GetHashCode()) / VoxelData.WorldSizeInChunks;
        SceneManager.LoadScene("World", LoadSceneMode.Single);

    }