Exemplo n.º 1
0
    public IEnumerator LoadNewGame(WorldConstants.Scenes scene)
    {
        for (int i = 0; i < 100; i++)
        {
            yield return(new WaitForFixedUpdate());
        }

        SceneManager.LoadScene((int)scene);
    }
Exemplo n.º 2
0
    public void LoadNewGame(WorldConstants.Scenes scene, WorldConstants.Difficulties difficulty)
    {
        WorldConstants.CurrentDifficulty = difficulty;

        StartCoroutine(LoadNewGame(scene));
    }