private void SwitchToPausedIntro() { if (currentState == SWState.Tutorial) SwitchFromTutorial(); currentState = SWState.PausedIntro; countdownFirstElement.gameObject.SetActive(true); Invoke("SwitchToGame", 5); //5 second countdown to wait for, so the game will start at the same time it finishes }
private void SwitchToTutorial() { currentState = SWState.Tutorial; tutorialCanvas.gameObject.SetActive(true); tutorialP1Items[TutorialStep1].gameObject.SetActive(true); tutorialP2Items[TutorialStep1].gameObject.SetActive(true); tutorialP1Items[TutorialStep2].gameObject.SetActive(false); tutorialP2Items[TutorialStep2].gameObject.SetActive(false); }
private void SwitchToGame() { currentState = SWState.Game; ActivateShips(); }