47 lines
1.9 KiB
C#
47 lines
1.9 KiB
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace TKS.OutGame
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 천하제일 탑 화면(컨텐츠 · 연무장 page 1) — 표 Resources/UI/Tower 가 있으면 확정 아트 화면(ArenaTower · PD 2026-11-18 「B안으로 진행해」 · 시안 mock_t_b*.png) ·
|
||
|
|
/// 표·그림이 없으면 예전 더미 UI(ArenaScreen.BuildTower).
|
||
|
|
/// </summary>
|
||
|
|
public partial class ArenaScreen
|
||
|
|
{
|
||
|
|
ArenaTower tower; // 확정 아트 화면(표 Resources/UI/Tower · 없으면 null = 더미 UI)
|
||
|
|
RectTransform towerSlot;
|
||
|
|
|
||
|
|
/// <summary>천하제일 탑 아트 화면(없으면 null · 테스트).</summary>
|
||
|
|
public ArenaTower Tower
|
||
|
|
{
|
||
|
|
get { return tower; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>지금 탑 아트 화면이 보이는가(테스트).</summary>
|
||
|
|
public bool TowerVisible
|
||
|
|
{
|
||
|
|
get { return tower != null && tower.Built && towerSlot != null && towerSlot.gameObject.activeInHierarchy; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>Build 에서 제목 띠보다 먼저(화면 전체 · 제목 띠 · 본문 뒤) — 표만 읽음(그림은 처음 열 때).</summary>
|
||
|
|
void LoadTowerView()
|
||
|
|
{
|
||
|
|
tower = ArenaTower.Load(this);
|
||
|
|
if (tower == null) return;
|
||
|
|
towerSlot = UiKit.Fill("Tower", Rt);
|
||
|
|
towerSlot.gameObject.SetActive(false);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>탑 쪽 = 아트 화면을 켜고 도전 층에 맞춰 정보 판을 다시 채움 · 표 없음 · 그림 없음 = false(호출 쪽 = 더미 UI).</summary>
|
||
|
|
bool ShowTowerView()
|
||
|
|
{
|
||
|
|
if (tower == null || towerSlot == null) return false;
|
||
|
|
towerSlot.gameObject.SetActive(true);
|
||
|
|
if (tower.Show(towerSlot)) return true;
|
||
|
|
towerSlot.gameObject.SetActive(false); // 그림 없음 = 더미 UI(다시 시도하지 않음)
|
||
|
|
tower = null;
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|