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