Пример #1
0
        void Start()
        {
            path.CalcDistances();

            steeringBasics = GetComponent <SteeringBasics>();
            followPath     = GetComponent <FollowPath>();
        }
Пример #2
0
        void Start()
        {
            path.CalcDistances();

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

            colAvoidSensor = transform.Find("ColAvoidSensor").GetComponent <NearSensor>();
        }