15/05/05 16:21:45.29 1M7GLvaw.net
>>207
#pragma strict
コレ入れると型に厳しくなる
new Array()じゃ駄目
strictでならこんな感じで型が解るように Inventoryを作る
---
#pragma strict
import System.Collections.Generic;
function Start() {
var Inventory = new List.<Boo.Lang.Hash>();
var tempItem = { "name" : "steel sword",
"atk" : 15
};
Inventory.Add(tempItem);
Debug.Log(Inventory[0]["name"]);
}
----