Beispiel #1
0
        /// <summary>
        /// When a choice is clicked
        /// </summary>
        /// <param name="_choiceText">the target Text</param>
        private void OnChoiceClick(Text _choiceText)
        {
            if (_gameUI.IsTimeBased)
            {
                StopTimer();
            }

            GameManager.Answer = _choiceText.text;
            GameEvents.Checking();
        }
Beispiel #2
0
        /// <summary>
        /// Invoke when clicking submit button
        /// </summary>
        private void OnSubmit()
        {
            if (_answerField.text == "")
            {
                return;
            }

            _answerField.interactable  = false;
            _submitButton.interactable = false;
            GameManager.Answer         = _answerField.text;
            GameEvents.Checking();
        }