private void GetNextWaypoint() { if (currentIndexWaypoint < waypointManager.getSize()) { currentDestination = waypointManager.GetNeWaypoint(currentIndexWaypoint); currentIndexWaypoint++; } }
private void GetNextWaypoint() { if (currentIndexWaypoint < waypointManager.waypoints.Length) { currentDestination = waypointManager.GetNeWaypoint(currentIndexWaypoint); currentIndexWaypoint++; } }