protected void ShowColorText(string txt, Color color) { whiteboardText.SetColor(color); whiteboardText.SetText(txt); whiteboardImage.Hide(); whiteboardText.Show(); }
protected void OnEnable() { var wb = GameObject.Find("WhiteBoardWithDisplay"); if (wb != null) { whiteboardText = wb.GetComponent <ShowText>(); whiteboardText.Hide(); whiteboardImage = wb.GetComponent <ShowImage>(); whiteboardImage.Hide(); } input = FindObjectOfType <InputBroker>(); subject = FindObjectOfType <SubjectDataHolder>(); subject.LoadSubjectData(); salienceController.ResetRunningAverage(); }