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; } }
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(); }