Пример #1
0
 public void Step()
 {
     if (--seconds > 0)
     {
         var position = Suspect.GetNetworkPosition();
         if (Vector3.Distance(position, lastPosition) > 0.1f)
         {
             endPosition = position;
             Move        = true;
             seconds     = 0;
             return;
         }
     }
     else if (seconds == 0)
     {
         endPosition = Suspect.transform.position;
     }
 }