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

            Stat stat = null;

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