public void StartState() { this.mContext = new Context(); this.mStateManager = new UserInterfaceInteriorManager.StateManager <UserInterfaceInteriorChangeManager.State>(UserInterfaceInteriorChangeManager.State.NONE); this.mStateManager.OnPop = new Action <UserInterfaceInteriorChangeManager.State>(this.OnPopState); this.mStateManager.OnPush = new Action <UserInterfaceInteriorChangeManager.State>(this.OnPushState); this.mStateManager.OnResume = new Action <UserInterfaceInteriorChangeManager.State>(this.OnResumeState); this.mStateManager.OnSwitch = new Action <UserInterfaceInteriorChangeManager.State>(this.OnSwitchState); this.mStateManager.PushState(UserInterfaceInteriorChangeManager.State.FurnitureKindsSelect); }
public void StartState() { mContext = new Context(); mStateManager = new UserInterfaceInteriorManager.StateManager <State>(State.NONE); mStateManager.OnPop = OnPopState; mStateManager.OnPush = OnPushState; mStateManager.OnResume = OnResumeState; mStateManager.OnSwitch = OnSwitchState; mStateManager.PushState(State.FurnitureKindsSelect); }
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; }
public void Clean() { this.mKeyController = null; this.mContext = null; this.mStateManager = null; if (this.mUIInteriorChangeFurnitureSelector != null) { this.mUIInteriorChangeFurnitureSelector.SetKeyController(null); } if (this.mUIInteriorFurnitureChangeScrollList != null) { this.mUIInteriorFurnitureChangeScrollList.SetKeyController(null); } if (this.mUIInteriorFurnitureDetail != null) { this.mUIInteriorFurnitureDetail.SetKeyController(null); } if (this.mUIInteriorFurniturePreviewWaiter != null) { this.mUIInteriorFurniturePreviewWaiter.SetKeyController(null); } }