Esempio n. 1
0
 protected void RefreshBetter()
 {
     if (lowerFlag != null)
     {
         if (equipmentInfo == null || equipmentInfo.Family != EquipmentFamily.COSMETIC)
         {
             lowerFlag.gameObject.SetActive(false);
             return;
         }
         if (equipmentInfo.CheckClass(GameCenter.curMainPlayer.Prof) && equipmentInfo.BelongTo != EquipmentBelongTo.EQUIP)
         {
             lowerFlag.gameObject.SetActive(equipmentInfo.Slot != EquipSlot.None &&
                                            GameCenter.inventoryMng.EquipDictionary.ContainsKey(equipmentInfo.Slot) &&
                                            equipmentInfo.IsLower(GameCenter.inventoryMng.EquipDictionary[equipmentInfo.Slot]));
         }
         else
         {
             lowerFlag.gameObject.SetActive(false);
         }
     }
 }