Beispiel #1
0
 public void LoadNPC(int id)
 {
     if (DataMart.CheckNPC(id))
     {
         NPCData data = DataMart.GetNPC(id);
         RefreshUI(data);
     }
     else
     {
         Debug.LogError("Cannot load, NPC not found.");
     }
 }
Beispiel #2
0
 private void Start()
 {
     if (IDKEY >= 0)
     {
         //Is not a negative number
         if (DataMart.CheckNPC(IDKEY))
         {
             NPCData data = DataMart.GetNPC(IDKEY);
             npcname = data.Name;
             uri     = data.URI;
         }
     }
     else
     {
         Debug.LogError("ID is a negative number");
     }
 }