ALIEN AND CUBES DUPLICATION FIXXIXIXI
This commit is contained in:
parent
9ac9eedf2f
commit
522a81b9d6
@ -32,6 +32,8 @@ namespace Level.BuildModules
|
||||
private List<Vector3> _enemySpawnPoses = new();
|
||||
public List<GameObject> enemyList = new();
|
||||
|
||||
private bool _nasral = false;
|
||||
|
||||
private IEnumerator Start()
|
||||
{
|
||||
if(!isServer) yield break;
|
||||
@ -69,6 +71,10 @@ namespace Level.BuildModules
|
||||
|
||||
private void OnPlayerSpawned()
|
||||
{
|
||||
if (_nasral) return;
|
||||
|
||||
_nasral = true;
|
||||
|
||||
print("OnPlayerSpawned");
|
||||
if (enemyList.Count == networkManager.maxMonsters) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user