A game about forced loneliness, made by TACStudios
1namespace Unity.VisualScripting
2{
3 /// <summary>
4 /// Compares two inputs to determine whether the first is less than the second.
5 /// </summary>
6 [UnitCategory("Logic")]
7 [UnitOrder(9)]
8 public sealed class Less : BinaryComparisonUnit
9 {
10 /// <summary>
11 /// Whether A is less than B.
12 /// </summary>
13 [PortLabel("A < B")]
14 public override ValueOutput comparison => base.comparison;
15
16 protected override bool NumericComparison(float a, float b)
17 {
18 return a < b;
19 }
20
21 protected override bool GenericComparison(object a, object b)
22 {
23 return OperatorUtility.LessThan(a, b);
24 }
25 }
26}