mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 20:03:10 +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]
|
//[RequireComponent]
|
||||||
public class SoldierSpawning : MonoBehaviour
|
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] int lastSpawnTick = 0;
|
||||||
[SerializeField] Squad squad;
|
[SerializeField] Squad squad;
|
||||||
[SerializeField] TilemapManager tilemapManager;
|
[SerializeField] TilemapManager tilemapManager;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user