End the game - Helge-dev/MinigameGallery GitHub Wiki

Call the following method to end the game

Code

CommonCommands.NextGame(List<int> firstPlace, List<int> secondPlace);

Explaination

firstPlace and secondPlace is a List<int> containing player numbers of everyone in second and first place at the end of the game. (Example of player numbers, Player 1 has 1, P2 has 2, P3…).

Note

Make sure NextGame() is only called once. Update() will continue until the next scene is open so a extra bool might be needed to check if the game has performed NextGame().

⚠️ **GitHub.com Fallback** ⚠️