3D Camera and Viewport Position Update Fixes (#579)

* Fixed Camera in Rhythm Rally and BTSDS

* commet out log

* fixed viewport not updating canvas in onBeatChanged
This commit is contained in:
Rapandrasmus
2023-11-21 17:57:03 +01:00
committed by GitHub
parent 240d098ac3
commit 7481f32c16
17 changed files with 156 additions and 83 deletions

View File

@ -605,7 +605,7 @@ namespace HeavenStudio
}
StartCoroutine(PlayCo(beat, delay));
onBeatChanged?.Invoke(beat);
//onBeatChanged?.Invoke(beat);
}
private IEnumerator PlayCo(double beat, float delay = 0f)
@ -649,7 +649,7 @@ namespace HeavenStudio
Conductor.instance.Stop(beat);
SetCurrentEventToClosest(beat);
onBeatChanged?.Invoke(beat);
//onBeatChanged?.Invoke(beat);
// I feel like I should standardize the names
SkillStarManager.instance.KillStar();
@ -946,6 +946,8 @@ namespace HeavenStudio
private void SetGame(string game, bool useMinigameColor = true)
{
ResetCamera(); // resetting camera before setting new minigame so minigames can set camera values in their awake call - Rasmus
Destroy(currentGameO);
currentGameO = Instantiate(GetGame(game));
@ -953,8 +955,6 @@ namespace HeavenStudio
currentGameO.name = game;
SetCurrentGame(game, useMinigameColor);
ResetCamera();
}
public void PreloadGameSequences(string game)