Example #1
0
    public void CheckProgress()
    {
        if (exercise.Progress == ExerciseProgress.Succeeded || exercise.Progress == ExerciseProgress.Failed)
        {
            if (ExplanationUI != null)
            {
                ExplanationUI.SetActive(false);
            }
            if (FeedbackUI != null)
            {
                FeedbackUI.GetComponent <MeshRenderer>().enabled = true;
            }

            if (!HasSetGUI)
            {
                DisplayStats();
                HasSetGUI = true;
            }
        }
        else
        {
            if (ExplanationUI != null)
            {
                ExplanationUI.SetActive(true);
            }
            if (FeedbackUI != null)
            {
                FeedbackUI.GetComponent <MeshRenderer>().enabled = false;
            }

            HasSetGUI = false;
        }
    }
Example #2
0
    public void Start()
    {
        if (ExplanationUI != null)
        {
            ExplanationUI.SetActive(true);
        }
        if (FeedbackUI != null)
        {
            FeedbackUI.GetComponent <MeshRenderer>().enabled = false;
        }

        leftGun  = exercise.Player.leftHand.gun;
        rightGun = exercise.Player.rightHand.gun;

        ClearBoard();
    }