Add Game Over screen and count down clock for game time
This commit is contained in:
parent
15abaa80fa
commit
0c71d06fb8
10 changed files with 934 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue