コード例 #1
0
        public static bool CanShow(int eid)
        {
            var partnerData = InventoryUtility.GetPartnerData(eid);
            var presetNames = InventoryUtility.GetAllEquipmentPresetNameContains(eid);

            return(partnerData != null || (presetNames != null && presetNames.Count > 0));
        }
コード例 #2
0
        private void Show(int eid)
        {
            var partnerData = InventoryUtility.GetPartnerData(eid);
            var presetNames = InventoryUtility.GetAllEquipmentPresetNameContains(eid);
            var showPreset  = presetNames != null && presetNames.Count > 0;
            var showPartner = partnerData != null;

            _goLeftPlaceholder.SetActive(!showPreset);
            _goScrollView.SetActive(showPreset);
            _goRightPlaceholder.SetActive(!showPartner);
            _goPartnerItem.SetActive(showPartner);
            _partnerCellController.Fill(partnerData);
            UpdatePresetNameList(presetNames);
        }