/* * Next button clicked on score panel */ public void ShowScoreDone() { _gameScript.PlayLightClick(); scorePanel.SetActive(false); // Show the first explanation panel explanationPanels[0].SetActive(true); _currentExplanationPanel = 0; }
/* * Go to a specific panel * Does not unselect the other panels */ public void GoToPanel(int panelIndex) { if (0 <= panelIndex && panelIndex < explanationPanels.Length) { gameScript.PlayLightClick(); explanationPanels[panelIndex].Select(); } else if (panelIndex >= explanationPanels.Length) { gameScript.PlayMeanClick(); gameScript.ExplanationsDone(); } }