示例#1
0
 private void Redraw()
 {
     transform.DetachChildren();
     foreach (QuestStatus status in questList.GetStatuses())
     {
         QuestItemUI uiInstance = Instantiate <QuestItemUI>(questPrefab, transform);
         uiInstance.Setup(status);
     }
 }
示例#2
0
    void OnEnable()
    {
        transform.DetachChildren();



        foreach (QuestStatus status in questList.GetStatuses())
        {
            QuestItemUI questUI = Instantiate(questPrefab, this.transform);
            questUI.Setup(status);
        }
    }
示例#3
0
 private void Redraw()
 {
     foreach (Transform item in transform)
     {
         Destroy(item.gameObject);
     }
     foreach (QuestStatus status in _questList.GetStatuses())
     {
         QuestItemUI uiInstance = Instantiate(questPrefab, transform);
         uiInstance.Setup(status);
     }
 }
示例#4
0
    void Redraw()
    {
        ClearQuests();

        if (questList.GetStatuses() == null)
        {
            return;
        }
        foreach (QuestStatus status in questList.GetStatuses())
        {
            QuestItemUI instance = Instantiate <QuestItemUI>(questItemPrefab, transform);
            instance.Setup(status);
        }
    }