public StatInteger Get(string key, int defaultValue = 0)
    {
        StatInteger stat = StatsDictionary.Get(key);

        if (stat == null)
        {
            stat = new StatInteger(key, defaultValue);
            StatsDictionary.Add(stat.Key, stat);
            Stats.Add(stat);
        }
        return(stat);
    }
 public StatInteger Get(string key, int defaultValue = 0)
 {
     StatInteger stat = StatsDictionary.Get(key);
     if (stat == null) {
         stat = new StatInteger(key, defaultValue);
         StatsDictionary.Add(stat.Key, stat);
         Stats.Add(stat);
     }
     return stat;
 }