Spaceball swing + low ball throw + perspective camera

This commit is contained in:
Starpelly
2021-12-25 07:16:40 -05:00
parent 199abb7fd3
commit 866c8c80be
70 changed files with 4174 additions and 17 deletions

View File

@ -24,10 +24,13 @@ namespace RhythmHeavenMania
public float startOffset;
public Camera GameCamera;
[Header("Games")]
Coroutine currentGameSwitchIE;
private string currentGame;
private void Awake()
{
instance = this;
@ -115,6 +118,7 @@ namespace RhythmHeavenMania
eventCaller.minigames.Find(c => c.name == currentGame).holder.SetActive(false);
eventCaller.minigames.Find(c => c.name == game).holder.SetActive(true);
GameCamera.orthographic = true;
eventCaller.minigames.Find(c => c.name == game).holder.GetComponent<Minigame>().OnGameSwitch();
currentGame = game;