private void Spawn() { if (scene.CanInstance()) { PrivateZombie privateZombie = (PrivateZombie)scene.Instance(); privateZombie.SetCharacter(this.mainCharacter); AddChild(privateZombie); privateZombie.SetCharacter(this.mainCharacter); EmitSignal(nameof(EnemieSpawn), privateZombie); this.Settings.NbrToSpawn -= 1; if (this.Settings.NbrToSpawn <= 0) { this.timer.Stop(); EmitSignal(nameof(SpawningOver), this); } } }