A game about forced loneliness, made by TACStudios
1using System.Collections.Generic;
2using System.Linq;
3using UnityEngine;
4
5namespace Unity.VisualScripting
6{
7 /// <summary>
8 /// Returns the minimum between two or more scalars.
9 /// </summary>
10 [UnitCategory("Math/Scalar")]
11 [UnitTitle("Minimum")]
12 public sealed class ScalarMinimum : Minimum<float>
13 {
14 public override float Operation(float a, float b)
15 {
16 return Mathf.Min(a, b);
17 }
18
19 public override float Operation(IEnumerable<float> values)
20 {
21 return values.Min();
22 }
23 }
24}