示例#1
0
    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;
            }
        }
    }
示例#2
0
 private void HandleTutorialTriggerEnter(TutorialTrigger _triggerTriggered)
 {
     tutorialTriggered = _triggerTriggered;
     enemyMng.SetCanAddTollerance(false);
     player.GetHealthController().SetCanLoseHealth(false);
     tutorialText.text = tutorialTriggered.GetTextToShow(InputChecker.GetCurrentInputType());
     tutorialText.gameObject.SetActive(true);
 }