I wrote a simple function to return a array, but when I call this function I got a problem: Object reference not set to an instance of an object.
Can anybody help me to figure out this problem?
function TestArray () : int[] {
var arr : int[];
for (var i : int = 0; i < 4; i++) {
arr[i] = 0;
}
return arr;
}