using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
namespace Snxxz.UI
|
{
|
public class EquipSlot
|
{
|
public readonly int level;
|
public readonly int place;
|
public readonly LogicBool selected = new LogicBool();
|
public bool unLocked { get { return PlayerDatas.Instance.baseData.realmLevel >= GetUnLockRealmLevel(); } }
|
public readonly LogicString equip = new LogicString();
|
|
public EquipSlot(int level, int place)
|
{
|
this.level = level;
|
this.place = place;
|
}
|
|
public int GetUnLockRealmLevel()
|
{
|
var config = EquipControlConfig.Get(level, place);
|
if (config != null)
|
{
|
return config.realm;
|
}
|
else
|
{
|
return 1;
|
}
|
}
|
|
}
|
|
}
|