error CS0101 because of 2 scripts

So basicly i am new to this whole Unity & Scripting thing and i have a problem. So i want to add a new wave system for my new game but when i add the script the following error message pops up in the console: Assets\WaveSpawner.cs(93,14): error CS0101: The namespace ‘’ already contains a definition for ‘Enemy’. I tried the same script on a other project and it seems to work. When i delete my Enemy script then the wave script is working. Here are both of the scripts:` private int waveValue;
public List enemiesToSpawn = new List();

public Transform spawnLocation;
public int waveDuration;
private float waveTimer;
private float spawnInterval;
private float spawnTimer;

// Start is called before the first frame update
void Start()
{
    GenerateWave();
}

// Update is called once per frame
void FixedUpdate()
{
    if (spawnTimer <= 0)
    {
        //spawn an enemy
        if (enemiesToSpawn.Count > 0)
        {
            Instantiate(enemiesToSpawn[0], spawnLocation.position, Quaternion.identity); // spawn first enemy in our list
            enemiesToSpawn.RemoveAt(0); // and remove it
            spawnTimer = spawnInterval;
        }
        else
        {
            waveTimer = 0; // if no enemies remain, end wave
        }
    }
    else
    {
        spawnTimer -= Time.fixedDeltaTime;
        waveTimer -= Time.fixedDeltaTime;
    }
}

public void GenerateWave()
{
    waveValue = currWave * 10;
    GenerateEnemies();

    spawnInterval = waveDuration / enemiesToSpawn.Count; // gives a fixed time between each enemies
    waveTimer = waveDuration; // wave duration is read only
}

public void GenerateEnemies()
{
    // Create a temporary list of enemies to generate
    // 
    // in a loop grab a random enemy 
    // see if we can afford it
    // if we can, add it to our list, and deduct the cost.

    // repeat... 

    //  -> if we have no points left, leave the loop

    List<GameObject> generatedEnemies = new List<GameObject>();
    while (waveValue > 0)
    {
        int randEnemyId = Random.Range(0, enemies.Count);
        int randEnemyCost = enemies[randEnemyId].cost;

        if (waveValue - randEnemyCost >= 0)
        {
            generatedEnemies.Add(enemies[randEnemyId].enemyPrefab);
            waveValue -= randEnemyCost;
        }
        else if (waveValue <= 0)
        {
            break;
        }
    }
    enemiesToSpawn.Clear();
    enemiesToSpawn = generatedEnemies;
}

}

[System.Serializable]
public class Enemy
{
public GameObject enemyPrefab;
public int cost;
}

`using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Enemy : MonoBehaviour
{
Animator animator;
public float Health
{
set
{
health = value;
if(health<= 0)
{
Defeated();
}
}
get
{
return health;
}
}
public float health = 1;

public void Start()
{
    animator = GetComponent<Animator>();
}

public void Defeated()
{
    animator.SetTrigger("Defeated");
}
public void RemoveEnemy()
{
    Destroy(gameObject);
}

}

@aykantokmak40 , Did You Had Enemy GameObject In Unity Hierarchy Tab? Because İ See The [System.Serializable] public class Enemy And public class Enemy : MonoBehaviour On WaveSpawner Script. And Anyway, İf You Had A Enemy GameObject, Let Me Show You How To Fix CS0101 Error. With By Step By Step Version. Step One: Take The Enemy On WaveSpawner Script.
Take This Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy : MonoBehaviour {
Animator animator;
public float Health { set { health = value; if(health<= 0) { Defeated(); } } get { return health; } }
public float health = 1;

 public void Start()
 {
     animator = GetComponent<Animator>();
 }
 public void Defeated()
 {
     animator.SetTrigger("Defeated");
 }
 public void RemoveEnemy()
 {
     Destroy(gameObject);
 }
}

Don’t Take This:
[System.Serializable] public class Enemy { public GameObject enemyPrefab; public int cost; }

Because [System.Serializable] public class Enemy, İs Goes To The WaveSpawner Script’s. In Here:
private int waveValue;
public List enemiesToSpawn = new List();
public Transform spawnLocation;
public int waveDuration;
private float waveTimer;
private float spawnInterval;
private float spawnTimer;
[System.Serializable] public class Enemy { public GameObject enemyPrefab; public int cost; }

Note: Don’t Forget To Create Enemy Script On Enemy Game Object.

Step Two: Paste The Copied Script On Enemy Script.

That’s All For Me. İf Doesn’t Work, Go This Question To Comment Me. İf You Don’t Understand, Here’s Video Version:
1

And Anyway, Are You From Turkish @aykantokmak40 ?