From b56eacd72e4f9b1e0e6dc319b0e463211642f168 Mon Sep 17 00:00:00 2001 From: Chikashi Miyama Date: Sat, 26 Oct 2019 19:19:54 +0200 Subject: [PATCH] add input viewer field --- UnityProject/Assets/Scripts/Math/Threshold.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnityProject/Assets/Scripts/Math/Threshold.cs b/UnityProject/Assets/Scripts/Math/Threshold.cs index aa5409d..e627742 100644 --- a/UnityProject/Assets/Scripts/Math/Threshold.cs +++ b/UnityProject/Assets/Scripts/Math/Threshold.cs @@ -5,13 +5,14 @@ namespace cylvester { public class Threshold : MonoBehaviour { + [SerializeField] private float input; [SerializeField] private float threshold; [SerializeField] private UnityEvent thresholdExceeded; private bool over_; public void OnValueReceived(float value) { - Debug.Log(value); + input = value; if (value > threshold && !over_) { over_ = true;