bessere Zombies

This commit is contained in:
2024-04-08 18:57:32 +02:00
parent 8e995ec0a5
commit 42f31b2ffe
24 changed files with 131786 additions and 295 deletions

View File

@ -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()