Przeglądaj źródła

战斗未穿必须品提示

zhaoyang 3 lat temu
rodzic
commit
d59c03c5cd

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -2,6 +2,7 @@ using UI.DressUp;
 using FairyGUI;
 using UnityEngine;
 using System.Collections.Generic;
+using System;
 
 namespace GFGGame
 {
@@ -333,6 +334,12 @@ namespace GFGGame
                     .SetRightButton(true, "好的");
                 return;
             }
+            int _suitId = EquipDataCache.cacher.suitId;
+            if (_fightCfg.needItemId > 0 && (_suitId <= 0 && EquipDataCache.cacher.equipDatas.IndexOf(_fightCfg.needItemId) < 0 || _suitId > 0 && Array.IndexOf(SuitCfgArray.Instance.GetCfg(_suitId).partsArr, _fightCfg.needItemId) < 0) || _fightCfg.needSuitId > 0 && _suitId != _fightCfg.needSuitId)
+            {
+                Alert.Show("未穿戴必须品~").SetRightButton(true, "好的");
+                return;
+            }
             if (CardDataManager.GetCardListByRarity(0).Count > 0)
             {