public void Awake(AttributeAI attribute) { if (bar == null) { Debug.LogError("Missing bar"); } }
public void Awake(AttributeAI attribute) { if (maxPossibleValue == 0) { Debug.LogError("Missing required maxPossibleValue"); } attribute.current = attribute.currentMax = Random.Range(minPossibleValue, maxPossibleValue); }
public void Update(AttributeAI attribute) { bar.fillAmount = attribute.currentPercent; }
public void Update(AttributeAI attribute) { attribute.current += (dynamicRate == null ? regenRate : dynamicRate.getRegenRate(regenRate)) * Time.deltaTime; }
public void Awake(AttributeAI attribute) { dynamicRate = attribute as IDynamicRegenAttributeAI; }
public void Update(AttributeAI attribute) { }