public void InstanciateWaves(int WaveID) //WaveManager { List <ShipType> ListShip = ennemyWave[WaveID].GetShips(); for (int i = 0; i < ListShip.Count; i++) { GameObject Entity = new GameObject(); Entity = shipFactory.InstantiateShip(ListShip[i], Spawns[Random.Range(0, Spawns.Count)].position); Entity.GetComponent <ShipState>().ShipDestroy += OnShipDestroy; Entities.Add(Entity); } }