Пример #1
0
    void Start()
    {
        SetResultText();

        sound = SoundBehaviour.FindInstance();
        sound.PlayBGM(menuBGM);
    }
Пример #2
0
    void Start()
    {
        lastMenuIndex = LastMenuIndexBehaviour.FindInstance();

        menus = new MenuBehaviour[] { startMenu, resultsMenu, quitMenu };
        menuI = lastMenuIndex.GetIndex();
        UpdateMenu();

        sound = SoundBehaviour.FindInstance();
        sound.PlayBGM(menuBGM);
    }