Exemple #1
0
 public void Awake(AttributeAI attribute)
 {
     if (bar == null)
     {
         Debug.LogError("Missing bar");
     }
 }
Exemple #2
0
 public void Awake(AttributeAI attribute)
 {
     if (maxPossibleValue == 0)
     {
         Debug.LogError("Missing required maxPossibleValue");
     }
     attribute.current = attribute.currentMax = Random.Range(minPossibleValue, maxPossibleValue);
 }
Exemple #3
0
 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;
 }
Exemple #6
0
 public void Update(AttributeAI attribute)
 {
 }