示例#1
0
 internal void Release()
 {
     this.mPrefab_UIRemodelSlotItemChangePreviewInParameter = null;
     NGUITools.Destroy(this.paramTable);
     this.paramTable = null;
     NGUITools.Destroy(this.weaponName);
     this.weaponName = null;
     if (this.weaponTypeIcon != null)
     {
         this.weaponTypeIcon.Clear();
         NGUITools.Destroy(this.weaponTypeIcon);
     }
     this.weaponTypeIcon = null;
     if (this.weaponImage != null)
     {
         this.weaponImage.mainTexture = null;
         NGUITools.Destroy(this.weaponImage);
     }
     this.weaponImage = null;
     if (this.mLock_Icon != null)
     {
         this.mLock_Icon.Clear();
     }
     this.mLock_Icon  = null;
     this.paramLavels = null;
 }
示例#2
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref this.BackGround, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.weaponName);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.weaponTypeIcon);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.weaponImage, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mLock_Icon);
     this.mPrefab_UIRemodelSlotItemChangePreviewInParameter = null;
     this.paramTable = null;
 }