예제 #1
0
    public void Awake()
    {
        textOption1 = lookInteraction_Option1.GetComponentInChildren <Text>(true);
        textOption2 = lookInteraction_Option2.GetComponentInChildren <Text>(true);

        mainInteractionAnimator = mainInteraction.GetComponent <Animator>();

        mainText = mainInteraction.GetComponentInChildren <Text>();

        //mainInteractionAnimator.SetBool(isActiveHash, false);
        //lookInteraction_Option1.RemoveSelections();
        //lookInteraction_Option2.RemoveSelections();

        mainText.text    = mainDiscussion[level];
        textOption1.text = discussionOptions1[level];
        textOption2.text = discussionOptions2[level];
    }
예제 #2
0
    //[SerializeField] private LocalizationManager LOCALIZATION_MANAGER;

    public void Start()
    {
        mainInteractionAnimator = mainInteraction.GetComponent <Animator>();

        if (mainText == null)
        {
            mainText = mainInteraction.GetComponentInChildren <Text>();
        }

        //mainText.text = mainDiscussion[level];
        mainText.text = currentDialougeMessageSet[level].mainText;


        mainInteractionAnimator.SetBool(isActiveHash, true);
        mainInteractionAnimator.SetBool(isActiveHash, false);

        if (lookInteraction_Option1 != null)
        {
            textOption1 = lookInteraction_Option1.GetComponentInChildren <Text>(true);
            // textOption1.text = discussionOptions1[level];

            textOption1.text = currentDialougeMessageSet[level].discussion_text_Option1;
        }

        if (lookInteraction_Option2 != null)
        {
            textOption2 = lookInteraction_Option2.GetComponentInChildren <Text>(true);
            //textOption2.text = discussionOptions2[level];

            textOption2.text = currentDialougeMessageSet[level].discussion_text_Option2;
        }

        if (isOnFromStart)
        {
            TurnOnDialogue();
        }
    }