private void HandleInputChanged(InputType _newInput) { if (tutorialTriggered != null) { switch (_newInput) { case InputType.Joystick: tutorialText.text = tutorialTriggered.GetTextToShow(_newInput); break; case InputType.Keyboard: tutorialText.text = tutorialTriggered.GetTextToShow(_newInput); break; } } }
private void HandleTutorialTriggerEnter(TutorialTrigger _triggerTriggered) { tutorialTriggered = _triggerTriggered; enemyMng.SetCanAddTollerance(false); player.GetHealthController().SetCanLoseHealth(false); tutorialText.text = tutorialTriggered.GetTextToShow(InputChecker.GetCurrentInputType()); tutorialText.gameObject.SetActive(true); }