Esempio n. 1
0
        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(SelectionUI owner, SelectionData data)
 {
     this.owner     = owner;
     this.text.text = data.text;
 }