Exemplo n.º 1
0
        // Player has clicked on a special NPC
        void SpecialNPCClick(StaticNPC npc)
        {
            // Handle special NPC in home location click
            SpecialNPCClickHandler specialNPCClickHandler = npc.gameObject.GetComponent <SpecialNPCClickHandler>();

            if (specialNPCClickHandler)
            {
                specialNPCClickHandler.DoClick();
            }
        }
Exemplo n.º 2
0
        // Player has clicked on a static NPC
        void StaticNPCClick(StaticNPC npc)
        {
            // Store the NPC just clicked in quest engine
            QuestMachine.Instance.LastNPCClicked = npc;

            // Check if this NPC is a quest giver and show temp guild quest popup
            QuestorCheck(npc);

            // Handle special NPC in home location click
            SpecialNPCClickHandler specialNPCClickHandler = npc.gameObject.GetComponent <SpecialNPCClickHandler>();

            if (specialNPCClickHandler)
            {
                specialNPCClickHandler.DoClick();
            }
        }