public void Release() { this.mUIInteriorFurnitureChangeScrollList.SetKeyController(null); UserInterfacePortManager.ReleaseUtils.Release(ref this.mAudioClip_CommonEnter1, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mAudioClip_CommonCancel1, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mAudioClip_CommonCursolMove, false); UserInterfacePortManager.ReleaseUtils.Release(ref this.mAudioClip_CommonEnter2, false); this.mKeyController = null; this.mContext = null; this.mStateManager = null; this.mUIInteriorChangeFurnitureSelector = null; this.mUIInteriorFurnitureDetail = null; this.mUIInteriorFurnitureChangeScrollList = null; this.mUIInteriorFurniturePreviewWaiter = null; this.mUserInterfacePortInteriorManager = null; }
private void OnDestroy() { mUIInteriorChangeFurnitureSelector = null; mUIInteriorFurnitureDetail = null; mUIInteriorFurnitureChangeScrollList = null; mUIInteriorFurniturePreviewWaiter = null; mUserInterfacePortInteriorManager = null; mTransform_MoveButton = null; mAudioClip_CommonEnter1 = null; mAudioClip_CommonCancel1 = null; mAudioClip_CommonCursolMove = null; mAudioClip_CommonEnter2 = null; mKeyController = null; mStateManager = null; mInteriorManager = null; mContext = null; }
private IEnumerator OnPushStateFurnitureSelectCoroutine() { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; FurnitureModel[] furnitureModels = mInteriorManager.GetFurnitures(mContext.CurrentCategory); if (mUIInteriorFurnitureChangeScrollList == null) { Stopwatch stopWatch = new Stopwatch(); stopWatch.Reset(); stopWatch.Start(); mUIInteriorFurnitureChangeScrollList = Util.Instantiate(mPrefab_UIInteriorFurnitureChangeScrollListNew.gameObject, base.gameObject).GetComponent <UIInteriorFurnitureChangeScrollListNew>(); mUIInteriorFurnitureChangeScrollList.SetActive(isActive: true); mUIInteriorFurnitureChangeScrollList.SetOnSelectedListener(OnSelectedListener); mUIInteriorFurnitureChangeScrollList.SetOnChangedItemListener(OnChanedItemListener); mUIInteriorFurnitureChangeScrollList.SetOnBackListener(OnBackListener); stopWatch.Stop(); for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++) { yield return(new WaitForEndOfFrame()); } } mUIInteriorFurnitureChangeScrollList.Initialize(mDeckid, mContext.CurrentCategory, furnitureModels, mCamera_SwipeEventCatch); StartCoroutine(ShowFurnitureSelecter()); }