Example #1
0
    //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>();
    }
Example #2
0
 //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>();
 }