Hash help for Unity
Always forget how to iterate “properly” through a hash in Unity… so:
function Awake () {
for (var child : Transform in transform) {
Global.footPlacements.Add(child.name,child);
}
for (var d : DictionaryEntry in Global.footPlacements){
print(d.Key + " " + d.Value);
}
}
I hate that we need to cast the hash objects as a non-recognizable type in UnityScript. Oh well.