public void RetryMediumLevel() { meanClick.Play(); StaticClass.RetryMediumLevel(); }
private void Start() { // Play background sound backgroundSound.Play(); int level = StaticClass.GetAndSetCurrentLevel(); switch (level) { case 1: { // Show the correct manager managerNeutral.SetActive(true); managerThinking.SetActive(false); // Hide Jason jasonNurse.SetActive(false); // Show instructions _instructionsToShow = 1; _showInstructions = true; // Sort out the dialogue if (!StaticClass.DialogueForCurrentLevelShown()) { managerDialogue1.ShowDialogue(); StaticClass.SeenDialogueForCurrentLevel(); } else { ExplanationsDone(); } break; } case 2: { // Show the correct manager managerNeutral.SetActive(true); managerThinking.SetActive(false); // Hide Jason jasonNurse.SetActive(false); // show instructions _instructionsToShow = 1; _showInstructions = true; if (!StaticClass.DialogueForCurrentLevelShown()) { managerDialogue2.ShowDialogue(); StaticClass.SeenDialogueForCurrentLevel(); } else { ExplanationsDone(); } break; } case 3: { // Show the correct manager managerNeutral.SetActive(false); managerThinking.SetActive(true); // Show Jason jasonNurse.SetActive(true); // Hide instructions _instructionsToShow = 2; _showInstructions = true; if (!StaticClass.DialogueForCurrentLevelShown()) { managerDialogue3.ShowDialogue(); StaticClass.SeenDialogueForCurrentLevel(); } else { ExplanationsDone(); } break; } default: { // Show the correct manager managerNeutral.SetActive(false); managerThinking.SetActive(true); // Show Jason jasonNurse.SetActive(true); // Hide instructions _showInstructions = false; break; } } // Sort out the badges greyedPhisherman.gameObject.SetActive(!StaticClass.GotAchievementEasy); greyedKingphisher.gameObject.SetActive(!StaticClass.GotAchievementMedium); greyedPoseidon.gameObject.SetActive(!StaticClass.PerfectedEasy || !StaticClass.PerfectedMedium); phisherman.gameObject.SetActive(StaticClass.GotAchievementEasy); kingphisher.gameObject.SetActive(StaticClass.GotAchievementMedium); poseidon.gameObject.SetActive(StaticClass.PerfectedEasy && StaticClass.PerfectedMedium); // Hide instructions instructions.SetActive(false); instructions2.SetActive(false); }
public void RetryEasyLevel() { meanClick.Play(); StaticClass.RetryEasyLevel(); }