Example #1
0
 public override void Awake()
 {
     behaviours.Add(regen);
     behaviours.Add(maxValue);
     if (updateBar != null)
     {
         behaviours.Add(updateBar);
     }
     base.Awake();
     age = GetComponent <AgeAttributeAI>();
     age.growthAttributes.Add(this);
 }
Example #2
0
 public override void Awake()
 {
     behaviours.Add(regen);
     behaviours.Add(maxValue);
     if (updateBar != null)
     {
         behaviours.Add(updateBar);
     }
     base.Awake();
     age = GetComponent <AgeAttributeAI>();
     age.growthAttributes.Add(this);
     model = transform.GetChild(0);
     rend  = model.GetComponent <Renderer>();
 }