|
@@ -170,10 +170,22 @@ namespace GFGGame
|
|
|
}
|
|
|
private void OnClickBtnBack()
|
|
|
{
|
|
|
-
|
|
|
- if (!MyDressUpHelper.CheckPutOnFinish())
|
|
|
+ bool isSave = _itemList.Count == MyDressUpHelper.dressUpObj.itemList.Count;
|
|
|
+ if (isSave)
|
|
|
+ {
|
|
|
+ for (int i = 0; i < _itemList.Count; i++)
|
|
|
+ {
|
|
|
+ int itemId = MyDressUpHelper.dressUpObj.itemList[i];
|
|
|
+ if (_itemList.IndexOf(itemId) < 0)
|
|
|
+ {
|
|
|
+ isSave = false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!isSave)
|
|
|
{
|
|
|
- AlertUI.Show("当前主题尚未穿戴完整,是否确定退出?")
|
|
|
+ AlertUI.Show("当前穿搭尚未保存,是否确定退出?")
|
|
|
.SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
|
|
|
{
|
|
|
GoBackToView();
|
|
@@ -186,7 +198,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void GoBackToView()
|
|
|
{
|
|
|
- _dataManager.DressupList[_dataManager.SelectThemeIndex].itemList = _itemList;
|
|
|
+ _roleData.itemList = _itemList;
|
|
|
FightDataManager.Instance.SetItemScoreList(_roleData);
|
|
|
ScoreSystemData.Instance.SetEquipScoresWithPartId(_roleData);
|
|
|
ViewManager.GoBackFrom(typeof(ArenaDressUpFightView).FullName);
|
|
@@ -202,7 +214,7 @@ namespace GFGGame
|
|
|
|
|
|
private void UpdateValueInfo()
|
|
|
{
|
|
|
- _dataManager.DressupList[_dataManager.SelectThemeIndex].itemList = MyDressUpHelper.dressUpObj.itemList;
|
|
|
+ _roleData.itemList = MyDressUpHelper.dressUpObj.itemList;
|
|
|
FightDataManager.Instance.SetItemScoreList(_roleData);
|
|
|
ScoreSystemData.Instance.SetEquipScoresWithPartId(_roleData);
|
|
|
ArenaViewManager.Instance.UpdateValue(_ui.m_comValueInfo.target, _dataManager.SelectThemeIndex, _dataManager.DressupList);
|