IE Numerator & Application load level

Simple but it’s not working

I’m waiting in this scene for three secs and moving to next…

 public float timeToWait = 3.0f;
    public string myChapter = "0";


        void Start()
    {
        StartCoroutine(Whatever());
    }

    IEnumerator Whatever()
    {
        Debug.Log("IE");
        yield return new WaitForSeconds(timeToWait);
        Debug.Log("Wait4");
        Application.LoadLevel(myChapter);
        Debug.Log("LOADed");
    }

Application.LoadLevel is obsolete in Unity 5. At the top of your script, you should state that you want to use SceneManagement:

using UnityEngine.SceneManagement;

And then use the function SceneManager.LoadScene:

SceneManager.LoadScene (myChapter, LoadSceneMode.Single);

Hope this helps!

Try putting the following line in the Awake() method:

DontDestroyOnLoad(this.gameObject);