Esempio n. 1
0
 protected override void FixedUpdate()
 {
     base.FixedUpdate();
     if (CurrentTarget.ExistsAndValid())
     {
         MoveTowardsTarget();
     }
     else
     {
         MoveAlongWaypoints();
     }
 }