/// <summary> /// Sets the references to the User Interface. /// </summary> private void SetReferencesToUI() { //sets the references to the text components on the UI again EmotionText = AccessUIText.GetUIText("EmotionText"); HrText = AccessUIText.GetUIText("HrText"); BaselineText = AccessUIText.GetUIText("BaselineText"); ConnectButton = AssignButtonCall.GetButton("ConnectButton").gameObject; }
/// <summary> /// Assigns the button calls. /// </summary> public void AssignButtonCalls() { //assigns the button call to exit the scene AssignButtonCall.AssignButton("SceneChangeButton", SceneChange); //assigns the button call to exit the scene AssignButtonCall.AssignButton("ConnectButton", ConnectToDevice); //assigns the button call to exit the scene AssignButtonCall.AssignButton("StartScanningButton", StartScan); //assigns the button call to exit the scene AssignButtonCall.AssignButton("SetBaselineButton", CalculateEmotionalBaseline); //assigns the button call to exit the scene AssignButtonCall.AssignButton("DisconnectButton", Disconnect); }