Exemplo n.º 1
0
    public void ExitPlayerState()
    {
        PlayerManager         player      = EventManager.Instance.GetPlayer().GetComponent <PlayerManager>();
        PlayerTransitionState statePlayer = (PlayerTransitionState)player.GetCurrentState();

        statePlayer.ReturnBackToPrevState();
    }
Exemplo n.º 2
0
    public void EndDialogue()
    {
        dialogueIsStart  = false;
        isTypingSentence = false;
        sentences.Clear();
        textZone.text = "";
        dialoguePanel.SetActive(false);

        PlayerTransitionState statePlayer = (PlayerTransitionState)player.GetCurrentState();

        statePlayer.ReturnBackToPrevState();
    }