示例#1
0
 public void StopMoving()
 {
     WholePath.Clear();
     WayPoints.Clear();
     _currentMovingPoinIndex = 0;
     IsMoving = false;
 }
示例#2
0
 private void GetWayPoints()
 {
     WayPoints = WholePath.Dequeue();
     _currentMovingPoinIndex = WayPoints.Count - 1;
     _player.Appearaance.ChangeDirection(WayPoints[_currentMovingPoinIndex] - transform.position);
 }