Example #1
0
 // Use this for initialization
 void Start()
 {
     goalObject    = GetComponent <GoalNamespace.Goal>();
     goalSwitcher  = GetComponent <GoalNamespace.GoalSwitcher>();
     sp            = GetComponent <SteeringParams>();
     charRigidBody = GetComponent <Kinematic>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     goalObject    = GetComponent <GoalNamespace.Goal>();
     sp            = GetComponent <SteeringParams>();
     charRigidBody = GetComponent <Rigidbody>();
 }
Example #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]);
        }