- 215 名前:名前は開発中のものです。 mailto:sage [2015/05/05(火) 16:21:45.29 ID: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"]); } ----
|

|