add input viewer field

This commit is contained in:
Chikashi Miyama 2019-10-26 19:19:54 +02:00
parent 53c1b2d7b5
commit b56eacd72e

View file

@ -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;