BITKit/Packages/Runtime~/Unity/Scripts/Components/IfGreater.cs

20 lines
494 B
C#
Raw Normal View History

2023-06-05 19:57:17 +08:00
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);
}
}
}