示例#1
0
 public NPCCharacterWrapper(NPCManager.NPCCharacter npcCharacter)
 {
     status = npcCharacter.status;
     if (npcCharacter.currentQuest != null)
     {
         currentQuest = npcCharacter.currentQuest.questID;
     }
     haveSpoken = npcCharacter.haveSpoken;
     hasQuest   = npcCharacter.hasQuest;
 }
示例#2
0
 private void Awake()
 {
     if (NPCManager.npcManager.HasNPC(ID))
     {
         NPCManager.NPCCharacter thisNPC = NPCManager.npcManager.GetNPC(ID);
         questToken.SetActive(thisNPC.hasQuest);
         questToken.GetComponentInChildren <QuestGiver>().questToGive = thisNPC.currentQuest;
         if (thisNPC.currentQuest != null)
         {
             questToken.GetComponentInChildren <QuestGiver>().questType = thisNPC.currentQuest.questType;
         }
         talkNotifier.SetActive(thisNPC.haveSpoken);
         awakeningStatus = thisNPC.status;
         if (thisNPC.status == AwakeningStatus.is_awake)
         {
             this.gameObject.GetComponent <SpriteRenderer>().sprite = spriteToLoad;
         }
     }
 }