bessere Zombies
This commit is contained in:
@ -8,7 +8,7 @@ public class ZombieSpawner : MonoBehaviour
|
||||
[SerializeField]
|
||||
List<Transform> SpawnPoints;
|
||||
[SerializeField]
|
||||
List<AudioClip> ZombieDeathByDisableSoundeffects;
|
||||
public List<AudioClip> ZombieDeathByDisableSoundeffects;
|
||||
[SerializeField]
|
||||
GameObject ZombiePrefab;
|
||||
[SerializeField]
|
||||
@ -88,7 +88,8 @@ public class ZombieSpawner : MonoBehaviour
|
||||
{
|
||||
if (transform.childCount > _spawnRate) return;
|
||||
Transform pos = SpawnPoints[Random.Range(0, SpawnPoints.Count)];
|
||||
Instantiate(ZombiePrefab, pos.position, Quaternion.identity, transform);
|
||||
Quaternion rotation = Quaternion.Euler(0, Random.Range(0, 359), 0);
|
||||
Instantiate(ZombiePrefab, pos.position, rotation, transform);
|
||||
}
|
||||
|
||||
private void KillZombiesByDisable()
|
||||
|
||||
Reference in New Issue
Block a user