Skip to content

Instantly share code, notes, and snippets.

@TomoG29
Last active January 13, 2019 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomoG29/de5f3f69f98b1bf938eaf9bf7c9bc8f3 to your computer and use it in GitHub Desktop.
Save TomoG29/de5f3f69f98b1bf938eaf9bf7c9bc8f3 to your computer and use it in GitHub Desktop.
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