Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last Changes before Section 4 #5

Merged
merged 1 commit into from
Feb 9, 2025
Merged

Last Changes before Section 4 #5

merged 1 commit into from
Feb 9, 2025

Conversation

Erikos66
Copy link
Owner

@Erikos66 Erikos66 commented Feb 9, 2025

This pull request to Assets/Scripts/Managers/EnemyManager.cs introduces a new system for managing enemy waves, allowing for more dynamic and varied enemy spawns. The changes include the introduction of a WaveDetails class to specify the number of different types of enemies, and several updates to the EnemyManager class to utilize this new system.

Enhancements to enemy wave management:

  • Added WaveDetails class to specify the number of basic and fast enemies to spawn.
  • Updated EnemyManager to use WaveDetails for controlling enemy spawns, including new serialized fields for enemy prefabs and respawn position.
  • Implemented Start method to initialize the list of enemies to create at the beginning of the game.
  • Modified Update method to check if there are enemies to create before spawning a new enemy and reset the spawn timer after spawning.
  • Added GetRandomEnemy and NewEnemyWave methods to manage the list of enemies to spawn and to select a random enemy from the list.

@Erikos66 Erikos66 merged commit 2b2d039 into master Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant