Make order and plant counter on go when actually playing
This commit is contained in:
parent
a4d3abfb89
commit
478b208c90
5 changed files with 35 additions and 28 deletions
|
@ -29,7 +29,11 @@ public class DeliveryManager : MonoBehaviour
|
|||
|
||||
private void Update()
|
||||
{
|
||||
if (GameStateManager.Instace.IsGamePlaying())
|
||||
{
|
||||
spawnRecipeTimer -= Time.deltaTime;
|
||||
}
|
||||
|
||||
if (spawnRecipeTimer <= 0f)
|
||||
{
|
||||
spawnRecipeTimer = spawnRecipeTimerMax;
|
||||
|
|
Reference in a new issue