Esempio n. 1
0
    public void SetActiveCharacter(NpcDatabaseEntry npc)
    {
        if (this.characterNameDisplay == null)
        {
            this.characterNameDisplay = GetComponentInChildren <TextMeshProUGUI>();
        }

        this.activeCharacter = npc;

        this.characterNameDisplay.text = this.activeCharacter.NpcName;
    }
Esempio n. 2
0
    public static NpcDatabaseEntry GetDatabaseEntry(int npcId)
    {
        if (npcEntryLookup.CollectionIsNotNullOrEmpty())
        {
            if (npcEntryLookup.ContainsKey(npcId))
            {
                return(npcEntryLookup[npcId]);
            }
        }

        return(NpcDatabaseEntry.NullEntry());
    }