private void CréerEnemyAleatoire() { int nbEnemy = GenerateurAleatoire.Next(0, 10); for (int i = 0; i < nbEnemy; i++) { Ennemis e = new Ennemis(Game, "player", 0.01f, new Vector3(256 / 2f + 2, 0, 256 / 2f + 2), Vector3.Zero, NiveauEnemy + 1); Game.Components.Add(e); } }
public void CréerEnemy(int niveauEnemy) { Ennemis e = new Ennemis(Game, "player", 0.01f, new Vector3(256 / 2f + 2, 0, 256 / 2f + 2), Vector3.Zero, niveauEnemy); Game.Components.Add(e); }