Пример #1
0
 public SteeringBehavior(Vehicle vehicle)
 {
     this.vehicle = vehicle;
     this.target = new Vector3(Vector3.zero);
     this.targetAgent = null;
     deceleration = Deceleration.normal;
     wanderTarget = new Vector3(2.0f, 0.0f, 0.0f);
 }
Пример #2
0
 public void SetTargetAgent(Vehicle targetAgent)
 {
     this.targetAgent = targetAgent;
 }