Created
November 15, 2013 05:57
-
-
Save kuanyingchou/7479804 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 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