Esempio n. 1
0
    public void back(float delay)
    {
        { StartCoroutine(sceneChange()); }

        IEnumerator sceneChange()
        {
            yield return(new WaitForSeconds(delay));

            // reload the current scene
            MySceneManager.LoadPreviousScene();
        }
    }
Esempio n. 2
0
 public void back()
 {
     // reload the current scene
     MySceneManager.LoadPreviousScene();
 }