public static FreeSkillData Get(string heroId) { // What the hell if (heroId == null) { return(new FreeSkillData()); } if (FreeSkillCampaignBehavior.FreeSkillDataMap.ContainsKey(heroId)) { return(FreeSkillCampaignBehavior.FreeSkillDataMap[heroId]); } var instance = new FreeSkillData(heroId); FreeSkillCampaignBehavior.FreeSkillDataMap.Add(heroId, instance); return(instance); }
public CharacterMixin(CharacterVM vm) : base(vm) { _freeSkillData = FreeSkill.Get(_vm.Hero.StringId); }