Ejemplo n.º 1
0
    private void onActionFirstNPC(int npcId)
    {
        ActionNPC npc   = Manager.Instance.DT.ActionNPC[npcId];
        string    lines = npc.firstMeetDesc;

        DialoguePanel.Show(npcId, lines, onClickNpcFirstMeet);
    }
Ejemplo n.º 2
0
    // for NPC
    public void Show(int npcId, string lines, UnityEngine.Events.UnityAction clickHandler)
    {
        ActionNPC npc = Manager.Instance.DT.ActionNPC[npcId];
        Character c   = Manager.Instance.DT.Character[npc.characterId];

        CharacterPanel.Set(c);
        show(c.name, lines, clickHandler);
    }
Ejemplo n.º 3
0
    private void onActionEndAchievement(int achievementRatio, int npcId, string msg)
    {
        ActionNPC npc = Manager.Instance.DT.ActionNPC[npcId];

        string lines = null;

        if (achievementRatio <= 0)
        {
            lines = string.Format("{0}\n({1})", npc.angryDesc, msg);
        }
        else if (achievementRatio < 100)
        {
            lines = string.Format("{0}\n({1})", npc.doneDesc, msg);
        }
        else
        {
            lines = string.Format("{0}\n({1})", npc.bonusDesc, msg);
        }

        DialoguePanel.Show(npcId, lines, onClickNpcEnd);
    }