Fix main menu song not stopping when in custom mode

This commit is contained in:
2025-09-11 19:09:17 -07:00
parent 5b19965304
commit bca9dab5ff

View File

@@ -26,7 +26,7 @@ public class MenuMusic : MonoBehaviour
void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
if (scene.name == "GamePlayer")
if (scene.name == "GamePlayer" || scene.name == "CustomGamePlayer")
{
SceneManager.sceneLoaded -= OnSceneLoaded;
Destroy(gameObject);