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