unity 二次元配列 javascript 2d-array

#pragma strict

//item table

var item_num = 10;
var tbl : float[,];

function Start () {

	//init
	tbl = new float[10,10];
	for(var i=0; i<10; i++){
		for(var j=0; j<10; j++){
			tbl[i,j] = 0;
		}
	}

	//set value
	tbl[0,0] = 1;
	tbl[0,1] = 2;
	tbl[0,2] = 3;

	show_table();
}

function show_table(){
	Debug.Log("Start");

	for(var i=0; i<10; i++){
		for(var j=0; j<10; j++){
			Debug.Log(tbl[i,j]);
		}
	}
	Debug.Log("End");
}

function Update () {
}