/** * Game state that is triggered if the user's answer was correct. * Prompts the user that they have acquired a cat if not collected before. * Also prompts the user to play the next level or to quit. */ void gameWin() { Debug.Log("You win!"); playable = false; if (!system.isCatCollected(currentLevel)) //if first time clear { system.collectCat(currentLevel); system.clearlevel(currentLevel); activateCatPrompt(); } else { system.clearlevel(currentLevel); activateWinPrompt(); } }