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; } }
public PlayerAnimMap(AnimMapSet[] inputSets) { map = new Dictionary<string, Dictionary<string, AnimMapSet>>(); AddFromData(inputSets); }