Exemplo n.º 1
0
    public void AddMap(AnimMapSet animSet)
    {
        Dictionary<string, AnimMapSet> actionAnimMap;

        if (map.TryGetValue(animSet.enemy, out actionAnimMap))
        {
            actionAnimMap[animSet.player] = animSet;
        }
        else
        {
            var newDict = new Dictionary<string, AnimMapSet>();
            map[animSet.enemy] = newDict;
            newDict[animSet.player] = animSet;
        }
    }
Exemplo n.º 2
0
 public PlayerAnimMap(AnimMapSet[] inputSets)
 {
     map = new Dictionary<string, Dictionary<string, AnimMapSet>>();
     AddFromData(inputSets);
 }