using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
namespace vnxbqy.UI
|
{
|
|
public class SpiritWeaponModel : Model
|
{
|
public static bool hasAutoEquipWing {
|
get {
|
return LocalSave.GetBool(StringUtility.Contact("HasAutoEquipWing_", PlayerDatas.Instance.baseData.PlayerID));
|
}
|
set {
|
LocalSave.SetBool(StringUtility.Contact("HasAutoEquipWing_", PlayerDatas.Instance.baseData.PlayerID), value);
|
}
|
}
|
|
public const int WING_EQUIPINDEX = 0;
|
|
PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
|
public override void Init()
|
{
|
|
}
|
|
public override void UnInit()
|
{
|
|
}
|
|
public string GetSpiritWeapon(RoleEquipType equipType)
|
{
|
var index = EquipPlaceMapConfig.GetServerPlace(0, (int)equipType);
|
var item = packModel.GetItemByIndex(PackType.Equip, index);
|
|
return item != null ? item.guid : string.Empty;
|
}
|
|
}
|
|
}
|