Exemplo n.º 1
0
    private void StartConversation()
    {
        CameraZoom.Center(GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(), npcXpos);
        PositionPlayer(GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>());

        preTalking = true;
        GameObject.Find("dialogueManager").GetComponent <Dialogue>().NewText(currentNPC.preTaskDialogue, false, null, null);
    }
Exemplo n.º 2
0
 public void StartPostConversation()
 {
     npcObjects[npcCounter].GetChild(0).gameObject.SetActive(true);
     npcParent.SetActive(true);
     if (currentNPC.postTaskDialogue != null)
     {
         CameraZoom.Center(GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(), npcXpos);
         PositionPlayer(GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>());
         GameObject.Find("dialogueManager").GetComponent <Dialogue>().NewText(currentNPC.postTaskDialogue, false, null, null);
         currentNPC       = null;
         currentNPCobject = null;
         currentSceneName = null;
     }
 }