Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Programmed in a functionality where if I go to the menu scene and it doesn't have music playing, it'll play the music by default, how this works is that it carries the DontDestroyOnLoad(this) code from the IntroObject script onto all new scenes, if it finds it in the menu it'll allow the IntroObject to continue playing it's music, if it doesn't detect the object existing in the menu scene (ex: from going back to the menu from another scene such as the main game, finishing story mode, etc.), It'll play the menu music from the Global.cs script instead