IEnumerator restart() { PlayerController.enabled = false; yield return(null); PlayerController.ToggleMouseLock(false); yield return(null); UnityEngine.SceneManagement.SceneManager.LoadScene(0); }
IEnumerator restart() { PlayerController.enabled = false; yield return(null); PlayerController.ToggleMouseLock(false); yield return(null); UnityEngine.SceneManagement.SceneManager.LoadScene(0); }