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
|
public class Threshold : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
[SerializeField] private float input;
|
||||||
[SerializeField] private float threshold;
|
[SerializeField] private float threshold;
|
||||||
[SerializeField] private UnityEvent thresholdExceeded;
|
[SerializeField] private UnityEvent thresholdExceeded;
|
||||||
private bool over_;
|
private bool over_;
|
||||||
|
|
||||||
public void OnValueReceived(float value)
|
public void OnValueReceived(float value)
|
||||||
{
|
{
|
||||||
Debug.Log(value);
|
input = value;
|
||||||
if (value > threshold && !over_)
|
if (value > threshold && !over_)
|
||||||
{
|
{
|
||||||
over_ = true;
|
over_ = true;
|
||||||
|
|
Loading…
Reference in a new issue