public void DoSpawn(int amount)
 {
     for (int i = 0; i < amount; ++i)
     {
         if (Controller.SpawnType == InvasionSpawnType.Rat)
         {
             InvasionRat m = new InvasionRat(Controller);
             Spawn(m);
         }
         else if (Controller.SpawnType == InvasionSpawnType.Orc)
         {
             InvasionOrc m = new InvasionOrc(Controller);
             Spawn(m);
         }
         else if (Controller.SpawnType == InvasionSpawnType.Reptile)
         {
             InvasionReptile m = new InvasionReptile(Controller);
             Spawn(m);
         }
         else if (Controller.SpawnType == InvasionSpawnType.Arachnid)
         {
             InvasionArachnid m = new InvasionArachnid(Controller);
             Spawn(m);
         }
     }
 }
 public void DoSpawn(int amount)
 {
     for (int i = 0; i < amount; ++i)
     {
         if (SpawnType == InvasionSpawnType.Rat)
         {
             InvasionRat m = new InvasionRat(this);
             SpawnMob(m);
         }
         else if (SpawnType == InvasionSpawnType.Orc)
         {
             InvasionOrc m = new InvasionOrc(this);
             SpawnMob(m);
         }
         else if (SpawnType == InvasionSpawnType.Reptile)
         {
             InvasionReptile m = new InvasionReptile(this);
             SpawnMob(m);
         }
         else if (SpawnType == InvasionSpawnType.Arachnid)
         {
             InvasionArachnid m = new InvasionArachnid(this);
             SpawnMob(m);
         }
     }
 }