protected virtual void UpdateStats() { if (_stats == null) { return; } var ageStat = _stats.GetStat("Age"); if (ageStat == null) { return; } _stats.StatToValue(ageStat).Value = _ageProgression; }
public void PopulateStatPanel(ObjectStatManager statManager, object[] objs) { var stat = statManager.GetStat((string)objs[0]); // objs[0] = statname stat.GetType().GetMethod("Populate").Invoke(stat, objs); }