Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     // if(_shipMovement.PathStatus() != NavMeshPathStatus.PathComplete){
     //     SetTargetPositionRandomly();
     // }
     if (!_shipMovement.IsMovingWithAgent(50f))
     {
         Debug.Log("Search Path");
         SetTargetPositionRandomly();
     }
 }