public void Initialize(float initialValue, float maxValue) { AttributePool = GetComponentInParent <AttributePool>(); SetMaxValue(maxValue); SetValue(initialValue); DispatchResetEvent(0, initialValue); }
public void Initialize(float initialValue, float maxValue) { AttributePool = GetComponentInParent<AttributePool>(); SetMaxValue(maxValue); SetValue(initialValue); DispatchResetEvent(0, initialValue); }
public override void ChangeValue(float targetValue) { Attribute armor = AttributePool.GetAttribute(AttributeType.Armor); if (armor != null) { targetValue += armor.CurrentValue; } base.ChangeValue(targetValue); }
public void SetAttributePool(AttributePool attrPool) { AttributePool = attrPool; }
private void Awake() { navMeshAgentController = GetComponent<NavMeshAgentController>(); attributePool = GetComponentInChildren<AttributePool>(); }
protected virtual void Awake() { baseMovement = GetComponent<BaseMovement>(); attributePool = GetComponentInChildren<AttributePool>(); }