// Also damages player if there is no more points
    void GetNextWaypoint()
    {
        if (waypointIndex >= waypoints.Length - 1)
        {
            monsterController.HitPlayer(damage);
            return;
        }

        waypointIndex++;
        target = waypoints[waypointIndex];
    }