This commit is contained in:
RochesterX
2025-03-28 13:00:37 -04:00
parent 4c22943273
commit 451bf78249
13 changed files with 1767 additions and 1287 deletions

View File

@@ -40,7 +40,15 @@ public class MusicManager : MonoBehaviour
{
Destroy(child.gameObject);
}
StartCoroutine(PlayPlaylist(sceneToPlaylist[GetActiveSceneNotTitleScreen()]));
try
{
StartCoroutine(PlayPlaylist(sceneToPlaylist[GetActiveSceneNotTitleScreen()]));
}
catch (System.Exception)
{
print("No playlist found for this scene: " + GetActiveSceneNotTitleScreen());
}
}
public void StartPlaylist(string scene)