Esempio n. 1
0
        public void Initialize(TitleScreenManager titleScreenManager)
        {
            _anim = titleScreenManager.GetComponent <TitleAnimationController>();
            var menu = titleScreenManager.GetValue <Menu>("_mainMenu");

            Initialize(menu);

            ResumeExpeditionButton = GetTitleButton("Button-ResumeGame");
            NewExpeditionButton    = GetTitleButton("Button-NewGame");
            OptionsButton          = GetTitleButton("Button-Options");
            ViewCreditsButton      = GetTitleButton("Button-Credits");
            SwitchProfileButton    = GetTitleButton("Button-Profile");
            QuitButton             = GetTitleButton("Button-Exit");

            var tabbedMenu = titleScreenManager.GetValue <TabbedMenu>("_optionsMenu");

            OptionsMenu.Initialize(tabbedMenu);
            InvokeOnInit();
        }
Esempio n. 2
0
 public void StartSong()
 {
     manager.GetComponent <BGMPlayer>().PlayBGM();
 }