Added getting all spawn point in wave manager
This commit is contained in:
parent
aff005397a
commit
07f203750f
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "LMWaveManager.h"
|
#include "LMWaveManager.h"
|
||||||
|
|
||||||
|
#include "EngineUtils.h"
|
||||||
#include "Components/CapsuleComponent.h"
|
#include "Components/CapsuleComponent.h"
|
||||||
#include "Enemy/LMEnemy.h"
|
#include "Enemy/LMEnemy.h"
|
||||||
|
|
||||||
@ -18,6 +19,17 @@ void ALMWaveManager::BeginPlay()
|
|||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
StartWave();
|
StartWave();
|
||||||
|
|
||||||
|
SpawnPositionsList.Empty(); // Nettoie la liste avant de remplir
|
||||||
|
|
||||||
|
for (TActorIterator<ALMSpawnPosition> It(GetWorld()); It; ++It)
|
||||||
|
{
|
||||||
|
ALMSpawnPosition* SpawnPos = *It;
|
||||||
|
if (SpawnPos)
|
||||||
|
{
|
||||||
|
SpawnPositionsList.Add(SpawnPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ALMWaveManager::SpawnEnemy(ALMSpawnPosition* spawnPosition)
|
void ALMWaveManager::SpawnEnemy(ALMSpawnPosition* spawnPosition)
|
||||||
|
Reference in New Issue
Block a user