private void OnTutorialFinished(ConfirmationBoxAnswered confirmationBoxAnsweredEvent) { Events.instance.RemoveListener <ConfirmationBoxAnswered>(OnTutorialFinished); Events.instance.Raise(new TutorialToggled(false)); SetActives(); Events.instance.Raise(new GameRestarted()); gameObject.SetActive(false); }
private void OnSkipTutorialAnswered(ConfirmationBoxAnswered confirmationBoxAnsweredEvent) { Events.instance.RemoveListener <ConfirmationBoxAnswered>(OnSkipTutorialAnswered); if (confirmationBoxAnsweredEvent.answeredPositive) { Events.instance.Raise(new TutorialToggled(false)); Events.instance.Raise(new GoInGame()); } }
private void OnConfirmationBoxAnswered(ConfirmationBoxAnswered confirmationBoxAnsweredEvent) { HideAll(); }
private void OnTutorialInfoReadRestart(ConfirmationBoxAnswered confirmationBoxAnsweredEvent) { Events.instance.RemoveListener <ConfirmationBoxAnswered>(OnTutorialInfoReadRestart); Events.instance.Raise(new GameRestarted()); }