private void Start() { // 프리팹들이 UI들을 모두 활성화 해서 보기좋게 해뒀기 떄문에, 위치 초기화가 필요함 this.questUI = GetComponentInChildren <QuestUI>(); (this.questUI.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.questUI.gameObject.SetActive(false); this.dungeonUI = GetComponentInChildren <DungeonUI>(); (this.dungeonUI.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.dungeonUI.gameObject.SetActive(false); this.dialogViewer = GetComponentInChildren <UITextViewer>(); (this.dialogViewer.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.dialogViewer.gameObject.SetActive(false); this.selectionUI = GetComponentInChildren <SelectionUI>(); (this.selectionUI.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.selectionUI.gameObject.SetActive(false); this.gameResultUI = GetComponentInChildren <GameResultUI>(); (this.gameResultUI.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.gameResultUI.gameObject.SetActive(false); this.inventoryUI = GetComponentInChildren <InventoryUI>(); (this.inventoryUI.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.inventoryUI.gameObject.SetActive(false); this.storeUI = GetComponentInChildren <StoreUI>(); (this.storeUI.transform as RectTransform).anchoredPosition3D = Vector3.zero; this.storeUI.gameObject.SetActive(false); }
public void Init(QuestUI owner, string key, string title) { this.owner = owner; this.key = key; this.titleText.text = title; // 퀘스트 상태에 따라 다른 아이콘 표시 this.progressIcon.sprite = QuestManager.inst.IsFinishProgress(key) ? this.completeSprite : this.progressingSprite; }