private void SpawnEnemy(WaveConfiguration waveConfiguration)
    {
        List <Transform> waypoints = waveConfiguration.GetWaypoints();

        GameObject   enemy           = Instantiate(waveConfiguration.GetEnemyPrefab(), waypoints[1].position, Quaternion.identity);
        EnemyPathing enemyController = enemy.GetComponent <EnemyPathing>();

        enemyController.SetWaypoints(waypoints);
        enemyController.SetMovementSpeed(waveConfiguration.GetMovementSpeed());
    }