Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (DialogStart)
        {
            Dialogpanel.SetActive(true);
            InConversation = true;
            DialogStart    = false;
            DialogEnd      = false;
        }
        else if (DialogEnd)
        {
            Dialogpanel.SetActive(false);
            InConversation = false;
            npc1Script.SetPartner(false);
        }

        if (InConversation)
        {
            UpdateDialog();
        }
    }
Exemple #2
0
    void UpdateDialog() //상대가 하나냐 둘이냐에 따라 다름.
    {                   //업데이트를 어떻게 할까.,.,
        Baseentity Bplayer = player.GetComponent <Baseentity>();

        npc1Script = npc1.GetComponent <NPCCharacter>();
        MaxScript  = 2;
        npc1Script.SetPartner(true);

        if (npc1Script.getIncon())
        {
            MultiDialog();
        }
        else
        {
            DirectDialog();
        }

        if (dialogindex > MaxScript)
        {
            SetEnd(true);
        }
    }