コード例 #1
0
 // Use this for initialization
 void Start()
 {
     Instance = this;
     dialogueO = GameObject.FindGameObjectWithTag("chatObject");
     dialogue = dialogueO.GetComponent<DialogueScript>();
     playerO = GameObject.FindGameObjectWithTag("Player");
     player = playerO.GetComponent<tempPlayerScript>();
     onMission = true;
     endMission = true;
     getMission = false;
 }
コード例 #2
0
    public void StartDialogue(string name)
    {
        switch(name)
        {

            case "NPC1":
            {
                if (current > end)
                {
                    npc1 = npc1O.GetComponent<Npc1Script>();
                    npc1.GetMission();
                }
                break;
            }
            case "NPC2":
            {
                if(current > end)
                {

                }
            }
        }
    }