穿戴装备恢复
This commit is contained in:
parent
36098d8173
commit
bcc75cf099
|
@ -317,7 +317,7 @@ public class ProcessManager : BaseManager<ProcessManager>
|
|||
{
|
||||
yield return waitForSeconds;
|
||||
countDown_AutoSave--;
|
||||
Debug.Log("自动保存倒计时:" + countDown_AutoSave);
|
||||
//Debug.Log("自动保存倒计时:" + countDown_AutoSave);
|
||||
if (countDown_AutoSave <= 0)
|
||||
{
|
||||
ReconnectMgr.Instance.RealtimeStatWriter();//需要在GameManager里面初始化
|
||||
|
|
|
@ -150,6 +150,13 @@ public class ReconnectMgr : SingletonMono<ReconnectMgr>
|
|||
{
|
||||
PacksackBagMgr.Instance.AddOneToolOrMater(item);
|
||||
}
|
||||
|
||||
//恢复已穿戴的装备
|
||||
List<ItemInfo> itemWear = ToolAndmaterialMgr.Instance.CreateItemInfoByName(UserExamStat.allWear);
|
||||
foreach (ItemInfo item in itemWear)
|
||||
{
|
||||
PacksackBagMgr.Instance.WearItemState(item, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Start is called before the first frame update
|
||||
|
|
Loading…
Reference in New Issue