public IEnumerator LoadNewGame(WorldConstants.Scenes scene) { for (int i = 0; i < 100; i++) { yield return(new WaitForFixedUpdate()); } SceneManager.LoadScene((int)scene); }
public void LoadNewGame(WorldConstants.Scenes scene, WorldConstants.Difficulties difficulty) { WorldConstants.CurrentDifficulty = difficulty; StartCoroutine(LoadNewGame(scene)); }