//public Transform head; void Awake() { steerfortarget = gameObject.GetComponent <SteerForTarget>(); vehicle = this.gameObject.GetComponent <AutonomousVehicle>(); person = this.gameObject.GetComponent <Person>(); aware = this.gameObject.GetComponent <Aware>(); personControl = GameObject.Find("Game Controller").GetComponent <s_PersonControl>(); me = this.gameObject; sightdetect = this.gameObject.GetComponentInChildren <SightDetect>(); clicker = GameObject.Find("Game Controller").GetComponent <s_Clicker>(); }
//public Transform head; void Awake() { steerfortarget = gameObject.GetComponent<SteerForTarget>(); vehicle = this.gameObject.GetComponent<AutonomousVehicle>(); person = this.gameObject.GetComponent<Person>(); aware = this.gameObject.GetComponent<Aware>(); personControl = GameObject.Find("Game Controller").GetComponent<s_PersonControl>(); me = this.gameObject; sightdetect = this.gameObject.GetComponentInChildren<SightDetect>(); clicker = GameObject.Find("Game Controller").GetComponent<s_Clicker>(); }