private void Awake() { this.ai = base.transform.parent.GetComponent <animalAI>(); this.avoidance = base.GetComponentInChildren <animalAvoidance>(); this.animator = base.GetComponent <Animator>(); this.waterChecker = base.GetComponentInChildren <inWaterChecker>(); this.Tr = base.transform.parent; this.rotateTr = base.transform; }
private void Awake() { this.ai = base.transform.parent.GetComponent<animalAI>(); this.avoidance = base.GetComponentInChildren<animalAvoidance>(); this.animator = base.GetComponent<Animator>(); this.waterChecker = base.GetComponentInChildren<inWaterChecker>(); this.Tr = base.transform.parent; this.rotateTr = base.transform; }