//Creates the <T> Stat and adds it to the collection protected T CreateStat <T>(StatType statType) where T : Stat { T stat = Activator.CreateInstance <T>(); //Debug.Log("CREATING STAT OF TYPE " + statType + ": " + stat.ToString()); StatDict.Add(statType, stat); return(stat); }