Hi All -
I'm trying to connect the dots on certain pieces of how ArrayMaker works, and hoping someone can help.
In "plain" script, it seems to be a fairly straightforward operation to get isolated values associated with keys in a Hashtable, like this:
TestDef GetData(string byName)
{
if ( testsList.ContainsKey(byName) )
return testsList[byName];
return null;
}
I've set up an FSM which loops through the items in a Hashtable, with key/values set up like this:
Key: thing1Loc Value: Lincoln Center
Key: thing2Loc Value: Central Park
Key: thing3Loc Value: Lincoln Center
Key: thing4Loc Value: Hudson Greenway
Key: thing5Loc Value: Central Park
What I would like to do is pass a specific value to select, and for every match, generate an NGUI menu item.
Effectively, I'm building a tree-menu system for selecting a location, and then displaying all of the items associated with that location. In simpler terms, I think this amounts to a filter.
The missing piece for me is how to pass the specific value to select. In the Action, I've assigned the value to a local var, which the action seems to want, but in printing to the console, it always returns the complete set of items in the hashtable (though in a strange order, but that's another topic altogether!).
I've attached a screenshot of the basic setup, including the results printed to the console. Any/all help greatly appreciated!!