public void Dispose() { if (mainTimer != null) { mainTimer.removeUpdateListener(myGUIUpdate); } if (vp != null) { ogreWindow.OgreRenderTarget.destroyViewport(vp); } if (camera != null) { sceneManager.destroyCamera(camera); } if (gui != null) { gui.shutdown(); gui.Dispose(); } if (ogrePlatform != null) { ogrePlatform.shutdown(); ogrePlatform.Dispose(); } if (sceneManager != null) { Root.getSingleton().destroySceneManager(sceneManager); } if (managedLogListener != null) { managedLogListener.Dispose(); } }
public override void Dispose() { if (timer != null) { timer.removeUpdateListener(this); } base.Dispose(); }
public void Dispose() { if (openALManager != null) { mainTimer.removeUpdateListener(soundUpdate); openALManager.Dispose(); openALManager = null; } }
public void Dispose() { this.updateListener.OnUpdate -= controller_OnUpdate; timer.removeUpdateListener(updateListener); OgreInterface.Instance.MaterialParser.removeMaterialBuilder(materialBuilder); sceneController.OnSceneLoaded -= SceneController_OnSceneLoaded; sceneController.OnSceneUnloading -= SceneController_OnSceneUnloading; IDisposableUtil.DisposeIfNotNull(virtualTextureManager); materialBuilder.Dispose(); }
public void setUpdateTimer(UpdateTimer timer) { if (timer != null) { timer.removeUpdateListener(this); } this.timer = timer; if (timer != null) { timer.addUpdateListener(this); } }
public void stopPlayback(bool playPostActions) { if (updating) { activeTimeline.stop(playPostActions); previousTimeline = activeTimeline; mainTimer.removeUpdateListener(this); activeTimeline.TimelineController = null; activeTimeline = null; updating = false; if (TimelinePlaybackStopped != null) { TimelinePlaybackStopped.Invoke(this, EventArgs.Empty); } if (queuedTimeline != null) { startPlayback(queuedTimeline, playPostActions); clearQueuedTimeline(); } } }
private void unsubscribeFromUpdates() { animating = false; mainTimer.removeUpdateListener(this); }
/// <summary> /// Cleanup this BehaviorManager. /// </summary> public void Dispose() { timer.removeUpdateListener(this); }
private void unsubscribeFromUpdates() { mainTimer.removeUpdateListener(this); }
public override void Dispose() { timer.removeUpdateListener(this); base.Dispose(); }