public void EndGame() { this.inGame = false; Koma_Rotate.EndRotate(); Player_Move.EndGame(); SceneManager.LoadScene("MainScene"); }
private void Awake() { Application.targetFrameRate = 60; bool titleSceneLoaded = false; foreach (Scene s in SceneManager.GetAllScenes()) { if (s.name == "TitleScene") { titleSceneLoaded = true; } } if (!titleSceneLoaded) { SceneManager.LoadScene("TitleScene", LoadSceneMode.Additive); } Koma_Rotate.EndRotate(); Player_Move.EndGame(); }