void Start() { route = GetComponent <s_RouteControl>(); clicker = GetComponent <s_Clicker>(); visitors = GetComponent <s_PersonControl>(); hover = GUI.tooltip; gameplay = GameObject.Find("Game Controller").GetComponent <s_GamePlay>(); }
void Awake() { person = this.gameObject.GetComponent <Person>(); route = GameObject.Find("Game Controller").GetComponent <s_RouteControl>(); command = GetComponent <Command>(); aware = GetComponent <Aware>(); visitors = GameObject.Find("Game Controller").GetComponent <s_PersonControl>(); 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>(); }
//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>(); }
void Start() { route = GetComponent<s_RouteControl>(); clicker = GetComponent<s_Clicker>(); visitors = GetComponent<s_PersonControl>(); hover = GUI.tooltip; gameplay = GameObject.Find("Game Controller").GetComponent<s_GamePlay>(); }
void Awake() { person = this.gameObject.GetComponent<Person>(); route = GameObject.Find("Game Controller").GetComponent<s_RouteControl>(); command = GetComponent<Command>(); aware = GetComponent<Aware>(); visitors = GameObject.Find("Game Controller").GetComponent<s_PersonControl>(); clicker = GameObject.Find("Game Controller").GetComponent<s_Clicker>(); }