You could create a class with the values you want, in this case since you are needing 2 ints, something like this will do:
class MyObject {
public var myIntA : int;
public var myIntB : int;
/**
Default constructor.
*/
public function MyObject () {
myIntA = myIntB = 0;
}
}
You then define your list as:
// Add this on top your script
import System.Collections.Generic;
// Here you create a list of your object, it supports more tham 8 I assure you
var verlist : List.<MyObject>;
function sampleUsage () {
verlist = new List.<MyObject>();
// Adding new object with default constructor.
verlist.Add(new MyObject());
// Adding new object with custom int values
var newitem : MyObject = new MyObject();
var newitem.myIntA = 5;
var newitem.myIntB = 10;
verlist.Add(newitem);
// foreach
foreach (var myobject : MyObject in verlist) {
// Displaying all values in console
Debug.Log(myobject.myIntA);
}
// Displaying value of MyObject added
Debug.Log(verlist[1].myIntB);
}