UI 이미지 작업

This commit is contained in:
aube.lee
2025-02-04 21:08:13 +09:00
parent 44777fdad6
commit 357a037f99
27 changed files with 1749 additions and 1006 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -8,11 +9,16 @@ namespace TON
public class LobbyUI : UIBase
{
public SerializableDictionary<string, Sprite> playerImages;
[SerializeField]
private TextMeshProUGUI characterName;
private void Start()
{
Image playerObj = GameObject.Find("TON.Player").GetComponent<Image>();
PlayerData player = PlayerDataManager.Singleton.player;
playerObj.sprite = playerImages.GetValueOrDefault(player.type);
characterName.text = player.name;
}
public void OnClickStageEntryButton()