Esempio n. 1
0
        public void Clear()
        {
            if (_stat != null)
            {
                _stat.TotalXp.OnResourceChanged -= RefreshText;
            }

            _stat = null;
        }
Esempio n. 2
0
 public void AssignStat(ExperienceStat stat)
 {
     _stat = stat;
     _stat.TotalXp.OnResourceChanged += RefreshText;
     RefreshText();
 }