Animate and add sound to countdown

This commit is contained in:
BuyMyMojo 2023-03-04 09:06:17 +11:00
parent 60ee4185e2
commit 8b0817b15d
6 changed files with 66 additions and 5 deletions

View file

@ -34,7 +34,7 @@ public class DeliveryManager : MonoBehaviour
{
spawnRecipeTimer = spawnRecipeTimerMax;
if (waitingRecipeSOList.Count < waitingRecipesMax)
if (GameStateManager.Instace.IsGamePlaying() && waitingRecipeSOList.Count < waitingRecipesMax)
{
RecipeSO waitingRecipeSO = recipeListSO.recipeSOList[UnityEngine.Random.Range(0, recipeListSO.recipeSOList.Count)];