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); }
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>(); }