Пример #1
0
 // Use this for initialization
 void Start()
 {
     goalObject    = GetComponent <GoalNamespace.Goal>();
     goalSwitcher  = GetComponent <GoalNamespace.GoalSwitcher>();
     sp            = GetComponent <SteeringParams>();
     charRigidBody = GetComponent <Kinematic>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     goalObject    = GetComponent <GoalNamespace.Goal>();
     sp            = GetComponent <SteeringParams>();
     charRigidBody = GetComponent <Rigidbody>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     sp         = GetComponent <SteeringParams>();
     goalObject = GetComponent <GoalNamespace.Goal>();
 }
        // Use this for initialization

        void Start()
        {
            goal_script = GetComponent <Goal>();
            goal_script.setGoal(ordered_goals[goal_index]);
        }