캐릭터 데이터 불러오기 및 캐릭터 선택 / 생성 화면 간의 이동 로직 적용
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
public class CharaterSelectUI_SlotItem : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Image character_image;
|
||||
[SerializeField] private TextMeshProUGUI charater_name;
|
||||
|
||||
public void SetCharaterData(Sprite image, string name)
|
||||
{
|
||||
character_image.sprite = image;
|
||||
charater_name.text = name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user