Пример #1
0
 public void TurnOffDialogue()
 {
     mainInteractionAnimator.SetBool(isActiveHash, false);
     lookInteraction_Option1.RemoveSelections();
     lookInteraction_Option2.RemoveSelections();
     //level = 0;
     // isOptionsLeftOut = false;
 }
Пример #2
0
    public void TurnOffDialogue(bool keepLevel = false)
    {
        if (initialSpeakInteraction)
        {
            initialSpeakInteraction.canAppear = true;
            initialSpeakInteraction.RemoveSelections();
        }

        if (!isCompleted && !keepLevel)
        {
            level = 0;
        }


        if (isCompleted && !isStressed)
        {
            onCompleteDialogue.Invoke();
        }



        if (!mainInteractionAnimator)
        {
            mainInteractionAnimator = mainInteraction.GetComponent <Animator>();
        }

        mainInteractionAnimator.SetBool(isActiveHash, false);

        if (lookInteraction_Option1 != null)
        {
            lookInteraction_Option1.RemoveSelections();
        }

        if (continueInteraction_Option != null)
        {
            continueInteraction_Option.RemoveSelections();
        }

        if (lookInteraction_Option2 != null)
        {
            lookInteraction_Option2.RemoveSelections();
        }


        //ChangeDisplayedText(currentDialougeMessageSet[level].dialogueChange_option_1);
    }