internal void Release()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref this.onTexture, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.offTexture, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.texture, false);
     this.parent = null;
 }
 internal void Release()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref onTexture);
     UserInterfacePortManager.ReleaseUtils.Release(ref offTexture);
     UserInterfacePortManager.ReleaseUtils.Release(ref texture);
     parent = null;
 }
Esempio n. 3
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 Init(CategoryMenu parent, int index, bool enabled)
 {
     this.parent = parent;
     this.index  = index;
     this.group  = parent.group;
     base.set_enabled(enabled);
     this.onChange.Clear();
     EventDelegate.Add(this.onChange, new EventDelegate.Callback(this.OnValueChange));
     this.texture.mainTexture = ((!enabled) ? this.offTexture : this.onTexture);
     base.get_transform().localScaleX(0.9f);
     base.get_transform().localScaleY(0.9f);
 }
 public void Init(CategoryMenu parent, int index, bool enabled)
 {
     this.parent  = parent;
     this.index   = index;
     group        = parent.group;
     base.enabled = enabled;
     onChange.Clear();
     EventDelegate.Add(onChange, OnValueChange);
     texture.mainTexture = ((!enabled) ? offTexture : onTexture);
     base.transform.localScaleX(0.9f);
     base.transform.localScaleY(0.9f);
 }