1
This commit is contained in:
20
Unity/Scripts/Components/IfGreater.cs
Normal file
20
Unity/Scripts/Components/IfGreater.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user