상점 UI 구조 추가

This commit is contained in:
Mingu Kim
2025-03-03 15:57:06 +09:00
parent 07d0bdcb7e
commit 4da498a0bb
7 changed files with 596 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace TON
{
public class ShopScene : SceneBase
{
public override IEnumerator OnStart()
{
// Title 씬을 비동기로 로드한다.
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync("Shop", LoadSceneMode.Single);
// 로드가 완료될 때 까지 yield return null 을 하면서 기다린다
while (!asyncLoad.isDone)
{
yield return null;
}
UIManager.Show<ShopUI>(UIList.ShopUI);
}
public override IEnumerator OnEnd()
{
yield return null;
UIManager.Hide<ShopUI>(UIList.ShopUI);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 663c8aabe8245974f9f8a7938158cd53
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: