/
TON618OFF
/
Unity-Project-RTU
Обзор
Документация
Войти
/
TON618OFF
/
Unity-Project-RTU
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Library/PackageCache/com.unity.visualscripting@1.9.4/Runtime/VisualScripting.Flow/Framework/Logic/LessOrEqual.cs
28 строк
800 B
TON618OFF
release
03 окт 2024, 22:20
03 окт 2024, 22:20
7c70e9f
Код
Авторство
О чём код?
using UnityEngine; namespace Unity.VisualScripting { /// <summary> /// Compares two inputs to determine whether the first is less than or equal to the second. /// </summary> [UnitCategory("Logic")] [UnitOrder(10)] public sealed class LessOrEqual : BinaryComparisonUnit { /// <summary> /// Whether A is greater than or equal to B. /// </summary> [PortLabel("A \u2264 B")] public override ValueOutput comparison => base.comparison; protected override bool NumericComparison(float a, float b) { return a < b || Mathf.Approximately(a, b); } protected override bool GenericComparison(object a, object b) { return OperatorUtility.LessThanOrEqual(a, b); } } }