public void OnFinalize() { if (this._continuousRenderCamera != null) { this._continuousRenderCamera.ReleaseCameraEntity(); this._continuousRenderCamera = null; } AgentVisuals expr_26 = this._agentVisuals; if (expr_26 != null) { expr_26.Reset(); } this._agentVisuals = null; TableauView expr_3E = this.View; if (expr_3E != null) { expr_3E.AddClearTask(); } this.Texture = null; if (this._tableauScene != null) { MBAgentRendererSceneController.DestructAgentRendererSceneController(this._tableauScene, this._agentRendererSceneController); this._agentRendererSceneController = null; this._tableauScene = null; } }