Exemple #1
0
 private void Awake()
 {
     animator = GetComponent <Animator>();
     if (showLearningButton)
     {
         showLearningButton.onClick.AddListener(() => SetAnimBoolParam(ANIM_BOOL_LEARNING, true));
     }
     if (hideLearningButton)
     {
         hideLearningButton.onClick.AddListener(() => SetAnimBoolParam(ANIM_BOOL_LEARNING, false));
     }
     if (showHintsButton)
     {
         showHintsButton.onClick.AddListener(() => SetAnimBoolParam(ANIM_BOOL_HINTS, true));
     }
     if (hideHintsButton)
     {
         hideHintsButton.onClick.AddListener(() => SetAnimBoolParam(ANIM_BOOL_HINTS, false));
     }
     if (resetButton)
     {
         resetButton.onClick.AddListener(() => RLUtilities.ResetGame());
     }
     gameObject.SetActive(false);
 }
Exemple #2
0
 private void Awake()
 {
     animator = GetComponent <Animator>();
     resetButton.onClick.AddListener(() => RLUtilities.ResetGame());
     quitButton.onClick.AddListener(() => Application.Quit());
     showButton.onClick.AddListener(() => SetVisible(true));
     hideButton.onClick.AddListener(() => SetVisible(false));
     quickplayButton.OnButtonPressed += _ => SetQuickplay(!isQuickplayOn);
     SetQuickplay(isQuickplayOn);
 }