Ejemplo n.º 1
0
        void Start()
        {
            steeringBasics = GetComponent <SteeringBasics>();
            wander         = GetComponent <Wander2>();
            colAvoid       = GetComponent <CollisionAvoidance>();

            colAvoidSensor = transform.Find("ColAvoidSensor").GetComponent <NearSensor>();
        }
Ejemplo n.º 2
0
        void Start()
        {
            steeringBasics = GetComponent <SteeringBasics>();
            offsetPursuit  = GetComponent <OffsetPursuit>();
            separation     = GetComponent <Separation>();

            sensor = transform.Find("SeparationSensor").GetComponent <NearSensor>();
        }
Ejemplo n.º 3
0
        void Start()
        {
            path.CalcDistances();

            steeringBasics = GetComponent <SteeringBasics>();
            followPath     = GetComponent <FollowPath>();
            colAvoid       = GetComponent <CollisionAvoidance>();

            colAvoidSensor = transform.Find("ColAvoidSensor").GetComponent <NearSensor>();
        }
Ejemplo n.º 4
0
        void Start()
        {
            steeringBasics = GetComponent <SteeringBasics>();
            wander         = GetComponent <Wander2>();
            cohesion       = GetComponent <Cohesion>();
            separation     = GetComponent <Separation>();
            velocityMatch  = GetComponent <VelocityMatch>();

            sensor = transform.Find("Sensor").GetComponent <NearSensor>();
        }