From 2496412da5964975c5eca7d91416cb8a5e4c0af9 Mon Sep 17 00:00:00 2001 From: Hosha <147952228+Kapitak@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:41:02 +0300 Subject: [PATCH] . --- UnityProject/Assets/Scripts/HallMiniGame.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/UnityProject/Assets/Scripts/HallMiniGame.cs b/UnityProject/Assets/Scripts/HallMiniGame.cs index 12e9025..f0066ef 100644 --- a/UnityProject/Assets/Scripts/HallMiniGame.cs +++ b/UnityProject/Assets/Scripts/HallMiniGame.cs @@ -40,6 +40,16 @@ public class HallMiniGame : MonoBehaviour {"84/28", 3}, {"73-29", 44}, {"568/71", 8}, + {"9+2", 11}, + {"14-5", 9}, + {"9*13", 117}, + {"345/23", 15}, + {"89-34", 55}, + {"14*34", 476}, + {"56/4", 14}, + {"19+67", 86}, + {"567-235", 332}, + {"4*2", 8}, }; @@ -68,9 +78,13 @@ void LoadNextProblem() { if (Problems.Count == 0) { - Debug.Log("No more equations!"); + CheckWin(); + CloseHallMiniGame(); return; } + // Debug.Log("No more equations!"); + // return; + KeyValuePair randomEquation = Problems.ElementAt(Random.Range(0, Problems.Count)); ŅurrentProblem = randomEquation.Key;