At runtime, what function can I call to check if a particular int is included in an array?
You can do this with System.Array.IndexOf
Sample code in javascript:
var array : int[] = [1, 5, 7, 3, 2, 14, 10];
var number = 7;
if(System.Array.IndexOf(array, number) != -1) {
Debug.Log("included");
}
else {
Debug.Log("not included");
}