예제 #1
0
 public static void NextMiniGame()
 {
     minigameId = 0;
     Console.WriteLine(minigameId);
     currentMiniGame = minigames[minigameId];
     currentMiniGame.Reset();
 }
예제 #2
0
        public static void NextMiniGame()
        {
            int next_minigameId = minigameId;

            if (minigames.Count() > 1)
            {
                while (minigameId == next_minigameId)
                {
                    next_minigameId = r.Next(0, minigames.Count());
                }
            }
            minigameId = next_minigameId;
            if (minigames.Count() == 1)
            {
                minigameId = 0;                         // Used when testing only one game
            }
            Console.WriteLine(minigameId);
            currentMiniGame = minigames[minigameId];
            currentMiniGame.Reset();
            time_limit = Convert.ToInt32(time_limit * 0.95f);
        }