コード例 #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);
        }
コード例 #2
0
        public void Init(DungeonUI owner, string key, string title)
        {
            this.owner = owner;

            this.key              = key;
            this.titleText.text   = title;
            this.bossIcon.enabled = DungeonDatabase.GetInfo(key).isBoss;
            this.newText.enabled  = !UserManager.IsClearDungeon(key);
        }
コード例 #3
0
        public void Init(DungeonUI owner, string key)
        {
            this.owner       = owner;
            this.dungeonInfo = DungeonDatabase.GetInfo(key);

            // 제목 텍스트 갱신
            this.titleText.text = this.dungeonInfo.title;

            // 컨텐츠 텍스트 갱신
            this.contentText.text = this.dungeonInfo.content;
        }