void Start() { SetResultText(); sound = SoundBehaviour.FindInstance(); sound.PlayBGM(menuBGM); }
void Start() { lastMenuIndex = LastMenuIndexBehaviour.FindInstance(); menus = new MenuBehaviour[] { startMenu, resultsMenu, quitMenu }; menuI = lastMenuIndex.GetIndex(); UpdateMenu(); sound = SoundBehaviour.FindInstance(); sound.PlayBGM(menuBGM); }