Unity Tutorials
Dictionaries Tutorial Script
#pragma strict
import System.Collections.Generic;
var stats = Dictionary.<String,String>();
stats["Type"] = "Weapon";
stats["Damage"] = "44";
stats["Block"] = "22";
function Start(){
Debug.Log("Damage: " + stats["Damage"]);
}
Newer Post
Older Post
Home