コード例 #1
0
        void Start()
        {
            steeringBasics = GetComponent <SteeringBasics>();
            wander         = GetComponent <Wander2>();
            colAvoid       = GetComponent <CollisionAvoidance>();

            colAvoidSensor = transform.Find("ColAvoidSensor").GetComponent <NearSensor>();
        }
コード例 #2
0
ファイル: ColAvoidUnit.cs プロジェクト: dakkua/ia-ksb-unity
        void Start()
        {
            path.CalcDistances();

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

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