Esempio n. 1
0
        void Start()
        {
            steeringBasics = GetComponent <SteeringBasics>();
            wander         = GetComponent <Wander2>();
            cohesion       = GetComponent <Cohesion>();
            separation     = GetComponent <Separation>();
            velocityMatch  = GetComponent <VelocityMatch>();

            sensor = transform.Find("Sensor").GetComponent <NearSensor>();
        }
Esempio n. 2
0
 void Start()
 {
     steeringBasics = GetComponent <SteeringBasics>();
     wander         = GetComponent <Wander2>();
 }