コード例 #1
0
 public void SetSteeringData(SteeringData data) => _steeringData = data;
コード例 #2
0
 public SteeringBehaviour(Rigidbody2D rb, float acceptDst, float desiredSpeed, float maxForce, AvoidData avoid = null)
 {
     _rb           = rb;
     _steeringData = new SteeringData(acceptDst, desiredSpeed, maxForce, avoid);
 }
コード例 #3
0
 public void SetMovementType(MovementType type) => SteeringData.SetMovementType(type);
コード例 #4
0
 public SteeringBehaviour(Rigidbody2D rb, SteeringData data)
 {
     _rb           = rb;
     _steeringData = data;
 }