You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
687 B
C#
32 lines
687 B
C#
using System;
|
|
using TMPro;
|
|
using Unity.BossRoom.Utils;
|
|
using UnityEngine;
|
|
using VContainer;
|
|
|
|
namespace Unity.BossRoom.Gameplay.UI
|
|
{
|
|
public class ProfileListItemUI : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
TextMeshProUGUI m_ProfileNameText;
|
|
|
|
[Inject] ProfileManager m_ProfileManager;
|
|
|
|
public void SetProfileName(string profileName)
|
|
{
|
|
m_ProfileNameText.text = profileName;
|
|
}
|
|
|
|
public void OnSelectClick()
|
|
{
|
|
m_ProfileManager.Profile = m_ProfileNameText.text;
|
|
}
|
|
|
|
public void OnDeleteClick()
|
|
{
|
|
m_ProfileManager.DeleteProfile(m_ProfileNameText.text);
|
|
}
|
|
}
|
|
}
|