메인 화면 UI 구조 변경

This commit is contained in:
aube.lee
2025-02-04 17:57:23 +09:00
parent a971567ffd
commit ab433ef46b
12 changed files with 2530 additions and 259 deletions

View File

@@ -1,15 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace TON
{
public class LobbyUI : UIBase
{
public SerializableDictionary<string, Sprite> playerImages;
private void Start()
{
Image playerObj = GameObject.Find("TON.Player").GetComponent<Image>();
PlayerData player = PlayerDataManager.Singleton.player;
playerObj.sprite = playerImages.GetValueOrDefault(player.type);
}
public void OnClickStageEntryButton()
{
UIManager.Hide<LobbyUI>(UIList.LobbyUI);
UIManager.Show<StageEntryUI>(UIList.StageEntryUI);
}
}
}