Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     Instance = this;
     dialogueO = GameObject.FindGameObjectWithTag("chatObject");
     dialogue = dialogueO.GetComponent<DrewDialogueScript>();
     playerO = GameObject.FindGameObjectWithTag("Player");
     player = playerO.GetComponent<DrewPlayer>();
     onMission = true;
     endMission = true;
     getMission = false;
 }
    public void StartDialogue(string name)
    {
        playerMessage();

        switch(name)
        {
        case "NPC1":
        {

            if (current > end)
            {
                print ("calling");
                npc1 = npc1O.GetComponent<DrewNPC1>();
                npc1.GetMission();

            }
            break;
        }
        }
        print(name);
    }