mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 17:43:12 +02:00
made soldiers spawn every 4/5 seconds
This commit is contained in:
parent
6d49382e56
commit
5c5e4d47eb
@ -6,7 +6,7 @@ using UnityEngine;
|
||||
//[RequireComponent]
|
||||
public class SoldierSpawning : MonoBehaviour
|
||||
{
|
||||
[SerializeField] int spawnInterval = 1000; // ticks between spawning soldiers
|
||||
[SerializeField] int spawnInterval = 20; // ticks between spawning soldiers
|
||||
[SerializeField] int lastSpawnTick = 0;
|
||||
[SerializeField] Squad squad;
|
||||
[SerializeField] TilemapManager tilemapManager;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user