Last active
January 13, 2019 04:48
-
-
Save TomoG29/de5f3f69f98b1bf938eaf9bf7c9bc8f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Linq; | |
public class Sample : MonoBehaviour | |
{ | |
public static T MaxValueLinq<T>(params T[] values) | |
{ | |
return values.Max(); | |
} | |
public static T MinValueLinq<T>(params T[] values) | |
{ | |
return values.Min(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment