using UnityEngine; namespace Unity.VisualScripting { /// /// Moves a scalar towards a target. /// [UnitCategory("Math/Scalar")] [UnitTitle("Move Towards")] public sealed class ScalarMoveTowards : MoveTowards { protected override float defaultCurrent => 0; protected override float defaultTarget => 1; public override float Operation(float current, float target, float maxDelta) { return Mathf.MoveTowards(current, target, maxDelta); } } }