예제 #1
0
 public void CheckOffQuest(GraveGhost ghost)
 {
     foreach (UIQuest quest in Quests)
     {
         if (ghost.Equals(quest.assignedGhost))
         {
             if (!quest.gameObject.activeSelf)
             {
                 ShowQuest(ghost);
             }
             quest.Crossout.SetActive(true);
             break;
         }
     }
 }
예제 #2
0
 public void ShowQuest(GraveGhost ghost)
 {
     foreach (UIQuest quest in Quests)
     {
         if (ghost.Equals(quest.assignedGhost))
         {
             quest.GetComponent <RectTransform>().anchoredPosition = Vector2.zero + new Vector2(0, offset * -30);
             quest.gameObject.SetActive(true);
             QuestScrollMiddle.GetComponent <RectTransform>().sizeDelta         = new Vector2(QuestScrollMiddle.GetComponent <RectTransform>().sizeDelta.x, (offset + 1) * 30);
             QuestScrollBottom.GetComponent <RectTransform>().anchoredPosition += new Vector2(0, -30);
             offset++;
             QuestsShown++;
             break;
         }
     }
 }