Inheritance: UnityEngine.MonoBehaviour
Exemplo n.º 1
0
        public void Initialize(float initialValue, float maxValue)
        {
            AttributePool = GetComponentInParent <AttributePool>();
            SetMaxValue(maxValue);
            SetValue(initialValue);

            DispatchResetEvent(0, initialValue);
        }
Exemplo n.º 2
0
        public void Initialize(float initialValue, float maxValue)
        {
            AttributePool = GetComponentInParent<AttributePool>();
            SetMaxValue(maxValue);
            SetValue(initialValue);

            DispatchResetEvent(0, initialValue);
        }
Exemplo n.º 3
0
        public override void ChangeValue(float targetValue)
        {
            Attribute armor = AttributePool.GetAttribute(AttributeType.Armor);

            if (armor != null)
            {
                targetValue += armor.CurrentValue;
            }

            base.ChangeValue(targetValue);
        }
Exemplo n.º 4
0
 public void SetAttributePool(AttributePool attrPool)
 {
     AttributePool = attrPool;
 }
Exemplo n.º 5
0
 private void Awake()
 {
     navMeshAgentController = GetComponent<NavMeshAgentController>();
     attributePool = GetComponentInChildren<AttributePool>();
 }
Exemplo n.º 6
0
 protected virtual void Awake()
 {
     baseMovement = GetComponent<BaseMovement>();
     attributePool = GetComponentInChildren<AttributePool>();
 }