Esempio n. 1
0
 private void Awake()
 {
     seenButtonLogic  = seenButton.GetComponent <SeenButtonLogic>();
     guiManager       = FindObjectOfType <GUIManager>();
     detailMoviePanel = GetComponent <DetailMoviePanel>();
     returnButton.OnClick.AddListener(ReturnToList);
     seenButtonLogic.stateChanged.AddListener(UpdateState);
     deleteButton.OnClick.AddListener(DeleteMovie);
     updateButton.OnClick.AddListener(UpdateMovie);
 }
Esempio n. 2
0
        private void Start()
        {
            resumeButton.OnClick.AddListener(() =>
            {
                Gm.instance.State = GameState.Play;
                NiwradMenu.instance.PopAll();
            });
            inputsButton.OnClick.AddListener(inputsMenu.Push);
            audioButton.OnClick.AddListener(audioMenu.Push);
            experienceButton.OnClick.AddListener(experienceMenu.Push);
            quitButton.OnClick.AddListener(Quit);

            settingsButton.OnClick.AddListener(SubShow);
            leaderboardButton.OnClick.AddListener(leaderboardMenu.Push);
            _settingsButtonMenu = settingsButton.GetComponent <Menu>();
            Gm.instance.ExperienceStateStarted += _settingsButtonMenu.Show;
            Gm.instance.PlayStateStarted       += _settingsButtonMenu.Show;
            Gm.instance.MenuStateStarted       += _settingsButtonMenu.Hide;
        }