Example #1
0
    protected virtual void UpdateStats()
    {
        if (_stats == null)
        {
            return;
        }

        var ageStat = _stats.GetStat("Age");

        if (ageStat == null)
        {
            return;
        }

        _stats.StatToValue(ageStat).Value = _ageProgression;
    }
Example #2
0
    public void PopulateStatPanel(ObjectStatManager statManager, object[] objs)
    {
        var stat = statManager.GetStat((string)objs[0]); // objs[0] = statname

        stat.GetType().GetMethod("Populate").Invoke(stat, objs);
    }