Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapitak committed Dec 16, 2024
1 parent aa14630 commit 2496412
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion UnityProject/Assets/Scripts/HallMiniGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};


Expand Down Expand Up @@ -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<string, int> randomEquation = Problems.ElementAt(Random.Range(0, Problems.Count));
ÑurrentProblem = randomEquation.Key;
Expand Down

0 comments on commit 2496412

Please sign in to comment.