Example #1
0
 public SkillType getMostDeadlySkill()
 {
     try
     {
         if (this.SkillDamageCounts.Count > 0)
         {
             return((SkillType)((int)Enum.Parse(typeof(SkillType), LangUtil.GetKeyWithHighestDoubleValueFromDictionary <string>(this.SkillDamageCounts))));
         }
     }
     catch (Exception)
     {
         Debug.LogError("Unidentified key in HeroStats.SkillDamageCounts");
     }
     return(SkillType.NONE);
 }