event caller refactoring

change operation order of minigame loading
This commit is contained in:
minenice55
2024-01-25 12:29:05 -05:00
parent ba3960d142
commit 9f0a48e9ff
8 changed files with 94 additions and 106 deletions

View File

@ -522,7 +522,7 @@ namespace HeavenStudio.Editor
public void ToggleDebugCam()
{
var game = GameManager.instance.currentGameO;
var game = GameManager.instance.minigameObj;
if (game != null)
{

View File

@ -353,12 +353,12 @@ namespace HeavenStudio.Editor.Track
if (!GameManager.instance.autoplay)
{
AutoplayBTN.GetComponent<Animator>().Play("Idle", 0, 0);
GameManager.instance.autoplay = true;
GameManager.instance.ToggleAutoplay(true);
}
else
{
AutoplayBTN.GetComponent<Animator>().Play("Disabled", 0, 0);
GameManager.instance.autoplay = false;
GameManager.instance.ToggleAutoplay(false);
}
}