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 maximum between two or more scalars.
9 /// </summary>
10 [UnitCategory("Math/Scalar")]
11 [UnitTitle("Maximum")]
12 public sealed class ScalarMaximum : Maximum<float>
13 {
14 public override float Operation(float a, float b)
15 {
16 return Mathf.Max(a, b);
17 }
18
19 public override float Operation(IEnumerable<float> values)
20 {
21 return values.Max();
22 }
23 }
24}