add input viewer field
This commit is contained in:
parent
53c1b2d7b5
commit
b56eacd72e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue