private void Redraw() { transform.DetachChildren(); foreach (QuestStatus status in questList.GetStatuses()) { QuestItemUI uiInstance = Instantiate <QuestItemUI>(questPrefab, transform); uiInstance.Setup(status); } }
void OnEnable() { transform.DetachChildren(); foreach (QuestStatus status in questList.GetStatuses()) { QuestItemUI questUI = Instantiate(questPrefab, this.transform); questUI.Setup(status); } }
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); } }
void Redraw() { ClearQuests(); if (questList.GetStatuses() == null) { return; } foreach (QuestStatus status in questList.GetStatuses()) { QuestItemUI instance = Instantiate <QuestItemUI>(questItemPrefab, transform); instance.Setup(status); } }