private void Start() { stats = GetComponentInParent <StatBlock>(); tmproText = GetComponentInChildren <TextMeshProUGUI>(); Stat stat = null; if (stats.TryGetValue(outputStat, out stat)) { tmproText.text = stat.ToString(); lastValue = stat; } }
public bool CanPayCosts(StatBlock costStatBlock, StatBlock paysCostStatBlock) { return(CostApplier.CanPay(costStatBlock, paysCostStatBlock, this)); }
public void PayCosts(StatBlock costStatBlock, StatBlock paysCostStatBlock) { CostApplier.Apply(costStatBlock, paysCostStatBlock, this); }
public void DoSomething() { StatBlock stats = this.GetComponentInParent <StatBlock>(); //empty }
public void ApplyDamage(StatBlock stats, int amount) { DamageApplier.Apply(stats, this, amount); }