using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
public class EquipLvSelect : MonoBehaviour
|
{
|
[SerializeField] Button lvBtn;
|
public PackModel.EquipLvType lvType;
|
public Text lvText;
|
PackModel playerPack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
private void OnEnable()
|
{
|
lvBtn.AddListener(ClickLvBtn);
|
}
|
private void OnDisable()
|
{
|
lvBtn.RemoveAllListeners();
|
}
|
private void ClickLvBtn()
|
{
|
playerPack.SetLvSelect(lvType);
|
}
|
}
|
}
|