Add Game Over screen and count down clock for game time

This commit is contained in:
BuyMyMojo 2023-03-03 09:51:19 +11:00
parent 15abaa80fa
commit 0c71d06fb8
10 changed files with 934 additions and 9 deletions

View file

@ -18,6 +18,7 @@ public class DeliveryManager : MonoBehaviour
private float spawnRecipeTimer;
private float spawnRecipeTimerMax = 4f;
private int waitingRecipesMax = 4;
private int successfulRecipesAmount;
private void Awake()
{
@ -84,6 +85,8 @@ public class DeliveryManager : MonoBehaviour
{
// Player delivered correct recipe
successfulRecipesAmount++;
waitingRecipeSOList.RemoveAt(i);
OnRecipeCompleted?.Invoke(this, EventArgs.Empty);
@ -105,4 +108,9 @@ public class DeliveryManager : MonoBehaviour
return waitingRecipeSOList;
}
public int GetSuccessfulRecipesAmount()
{
return successfulRecipesAmount;
}
}