Skip to content

Instantly share code, notes, and snippets.

@kuanyingchou
Created November 15, 2013 05:57
Show Gist options
  • Save kuanyingchou/7479804 to your computer and use it in GitHub Desktop.
Save kuanyingchou/7479804 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
using System.Linq;
using System;
public class TestLinq : MonoBehaviour {
void Start () {
float[] values = new float[3] { 3, 5, 1};
Debug.Log(values.Min());
Debug.Log(Array.IndexOf(values, values.Min()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment