diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 95a4e584..3244b63e 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -303,7 +303,6 @@ namespace RhythmHeavenMania this.GetComponent().enabled = true; SetGame(game); - GameCamera.transform.localPosition = new Vector3(GameCamera.transform.localPosition.x, GameCamera.transform.localPosition.y, -10); yield return new WaitForSeconds(0.1f); @@ -347,6 +346,8 @@ namespace RhythmHeavenMania }*/ SetCurrentGame(game); + + ResetCamera(); } private void PreloadGame(string game) @@ -407,5 +408,10 @@ namespace RhythmHeavenMania else return true; } + + public void ResetCamera() + { + GameCamera.transform.localPosition = new Vector3(0, 0, -10); + } } } \ No newline at end of file