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; }
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; }