Exemple #1
0
        public Direction GetNextWaypoint()
        {
            var wps = Waypoints.Enumerate().ToArray();

            _lastWaypoint++;
            _lastWaypoint = _lastWaypoint % wps.Length;
            return(wps[_lastWaypoint]);
        }