예제 #1
0
        /// <summary>
        /// Is called when the course started event is triggered.
        /// </summary>
        /// <param name="sender">Sender of the event.</param>
        /// <param name="courseEventArgs">Course event arguments.</param>
        protected virtual void OnCourseStarted(object sender, CourseEventArgs courseEventArgs)
        {
            // Show the skip step button instead of the start button.
            skipStepPicker.gameObject.SetActive(true);
            startTrainingButton.gameObject.SetActive(false);

            // Disable button as you have to reset scene before starting the training again.
            startTrainingButton.interactable = false;
            // Disable the language picker as it is not allowed to change the language during the training's execution.
            languagePicker.interactable = false;
        }
예제 #2
0
 /// <summary>
 /// Is called when the course finished event is triggered.
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="courseEventArgs">Course event arguments.</param>
 protected virtual void OnCourseFinished(object sender, CourseEventArgs courseEventArgs)
 {
     skipStepPicker.gameObject.SetActive(false);
     startTrainingButton.gameObject.SetActive(true);
 }