コード例 #1
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Releases(ref mTextures_Preload);
     UserInterfacePortManager.ReleaseUtils.Release(ref backGroundUpperSteelFrame);
     UserInterfacePortManager.ReleaseUtils.Release(ref backGroundLowerSteelFrame);
     mCamera_TouchEventCatch = null;
     mPrefab_PortUpgradesConvertShipManager_KaizouAnimation           = null;
     mPrefab_PortUpgradesModernizeShipManager_KindaikakaishuAnimation = null;
     mUIRemodelHeader                = null;
     mUIRemodelShipSlider            = null;
     mUIRemodelShipStatus            = null;
     mUIRemodelLeftShipStatus        = null;
     mUIRemodelStartRightInfo        = null;
     mUIRemodelEquipSlotItems        = null;
     mUIRemodelModeSelectMenu        = null;
     mUIRemodelDeckSwitchManager     = null;
     mUIRemodelModernization         = null;
     mUIRemodelKaizou                = null;
     mUIRemodelEquipListParent       = null;
     mUIRemodelSlotItemChangePreview = null;
     mCategoryMenu = null;
     mUIRemodeModernizationShipTargetListParentNew = null;
     mUIRemodelModernizationStartConfirm           = null;
     mUIRemodelOtherShipPickerParent = null;
     commonDeckSwitchManager         = null;
     mUIRemodelCurrentSlot           = null;
     mUIHowTo                      = null;
     okBauxiteUseMessage           = null;
     okBauxiteUseHighCostMessage   = null;
     ngBauxiteShortMessage         = null;
     ngBausiteShortHighCostMessage = null;
     mUIDisplaySwipeEventRegion    = null;
     instance                      = null;
 }
        public void Initialize(KeyControl keyController, UIRemodelShipStatus uiRemodelShipStatus, UIRemodelEquipSlotItems uiRemodelEquipSlotItems, ShipModel targetShipModel, SlotitemCategory slotitemCategory)
        {
            this.mUIRemodelShipStatus = uiRemodelShipStatus;
            int  currentSlotIndex = uiRemodelEquipSlotItems.GetCurrentSlotIndex();
            bool isExSlot         = uiRemodelEquipSlotItems.currentFocusItem.isExSlot;

            this.mTargetShipModel   = targetShipModel;
            this.mSelectedSlotIndex = currentSlotIndex;
            this.slotitemCategory   = slotitemCategory;
            this.mRemodelManager    = UserInterfaceRemodelManager.instance.mRemodelManager;
            this.SetKeyController(keyController);
            this.SetTitle(slotitemCategory);
            SlotitemModel[] models = this.CreateModelArray(isExSlot);
            base.Initialize(models);
            base.get_gameObject().SetActive(false);
            base.get_gameObject().SetActive(true);
            base.ChangeFocusToUserViewHead();
            base.ChangeImmediateContentPosition(UIScrollList <SlotitemModel, UIRemodelEquipListChildNew> .ContentDirection.Hell);
            base.StartControl();
        }