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

            Stat stat = null;

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