private void FixedUpdate()
 {
     if (_pirate.IsEscape())
     {
         Move();
         _wheel.RotateTo(_transform, _pirate.GetSpawnPosition());
     }
     else
     {
         if (_pirate.GetTarget() != null)
         {
             Move();
             _wheel.RotateTo(_transform, _pirate.GetTarget().position);
         }
     }
 }
Beispiel #2
0
 private void Update()
 {
     _wheel.RotateTo(_transform, _targetPoint);
     UpdateTargetPoint();
 }