mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Camera now always resets on game switch, even when scrubbing.
This commit is contained in:
parent
a64cb476e0
commit
ac163fa2dc
1 changed files with 7 additions and 1 deletions
|
@ -303,7 +303,6 @@ namespace RhythmHeavenMania
|
|||
this.GetComponent<SpriteRenderer>().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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue