20 lines
494 B
C#
20 lines
494 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
namespace BITKit
|
|
{
|
|
public class IfGreater : Provider<float>
|
|
{
|
|
public float value;
|
|
public bool inverse;
|
|
public Provider<bool> output;
|
|
public override float Get()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
public override void Set(float t)
|
|
{
|
|
output?.Set(t > value ? inverse ? false : true : false);
|
|
}
|
|
}
|
|
} |