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