Beispiel #1
0
 public void UpdatePath()
 {
     if (!showPath)
     {
         return;
     }
     if (Pos.DistBetweenPoints(_oldPos) < 10)
     {
         return;
     }
     _oldPos = Pos;
     if (_path.Count > 50)
     {
         _path.RemoveLast();
     }
     _path.AddFirst(Pos.AsPoint);
 }