Esempio n. 1
0
    void LoadSpeech()
    {
        if (ray.NPCTrigger() == true)
        {
            ray.hitObj.GetComponent <NPCDialogue>().isNPCClose = true;
            playerDialogue.target    = ray.hitObj.GetComponent <Transform>();
            textManager.dialogueText = ray.hitObj.GetComponentInChildren <Text>();
        }

        if (ray.NPCTrigger() == false)
        {
            image.texture = null;
            playerDialogue.OpenSellDialog(false);
        }
    }