Post

07.27 커튼 퍼즐

07.27 커튼 퍼즐

퍼즐 팝업들은 불투명한 백그라운드 Dim이 필요없다.

퍼즐 UI에 사용할 구조를 먼저 작성한다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Canvas
└─ PopupRoot
   └─ PuzzlePopup
      └─ PuzzleFrame
         ├─ PuzzleBorder
         ├─ Header
         │  ├─ TitleText
         │  └─ CloseButton
         └─ Body
            ├─ ContentRoot
            │  └─ PuzzleContent
            └─ PuzzleInventoryIndex   // 필요한 퍼즐만 사용
               ├─ Background
               └─ ItemsRoot
                  └─ InventoryItem
  1. PuzzlePopupFrame은 공통적으로 들어가는 Prefab으로 디자인
  2. PuzzleContent에 들어가는 퍼즐들을 개별적으로 디자인

image-2 퍼즐 데이터 설정에서 Popup 설정이 안되는 이유는? 부모 클래스로 타입을 설정해놨기 때문이죠

퍼즐에서만 상호작용 가능한 아이템 클래스를 만들어두고 활용하기

커튼 퍼즐

image-3

This post is licensed under CC BY 4.0 by the author.