public void SetActiveCharacter(NpcDatabaseEntry npc) { if (this.characterNameDisplay == null) { this.characterNameDisplay = GetComponentInChildren <TextMeshProUGUI>(); } this.activeCharacter = npc; this.characterNameDisplay.text = this.activeCharacter.NpcName; }
public static NpcDatabaseEntry GetDatabaseEntry(int npcId) { if (npcEntryLookup.CollectionIsNotNullOrEmpty()) { if (npcEntryLookup.ContainsKey(npcId)) { return(npcEntryLookup[npcId]); } } return(NpcDatabaseEntry.NullEntry()); }