private void Start()
        {
            stats     = GetComponentInParent <StatBlock>();
            tmproText = GetComponentInChildren <TextMeshProUGUI>();

            Stat stat = null;

            if (stats.TryGetValue(outputStat, out stat))
            {
                tmproText.text = stat.ToString();
                lastValue      = stat;
            }
        }
Esempio n. 2
0
 public bool CanPayCosts(StatBlock costStatBlock, StatBlock paysCostStatBlock)
 {
     return(CostApplier.CanPay(costStatBlock, paysCostStatBlock, this));
 }
Esempio n. 3
0
 public void PayCosts(StatBlock costStatBlock, StatBlock paysCostStatBlock)
 {
     CostApplier.Apply(costStatBlock, paysCostStatBlock, this);
 }
 public void DoSomething()
 {
     StatBlock stats = this.GetComponentInParent <StatBlock>();
     //empty
 }
Esempio n. 5
0
 public void ApplyDamage(StatBlock stats, int amount)
 {
     DamageApplier.Apply(stats, this, amount);
 }