public override void OnReleased() { Redirector <TreeToolDetour> .Revert(); Redirector <BeautificationPanelDetour> .Revert(); BeautificationPanelDetour.Dispose(); Redirector <WaterToolDetour> .Revert(); Redirector <TerrainToolDetour> .Revert(); TerrainToolDetour.Dispose(); Redirector <TerrainPanelDetour> .Revert(); Redirector <LandscapingPanelDetour> .Revert(); LandscapingPanelDetour.Dispose(); Redirector <LevelHeightOptionPanelDetour> .Revert(); LevelHeightOptionPanelDetour.Dispose(); Redirector <UndoTerrainOptionPanelDetour> .Revert(); Redirector <BrushOptionPanelDetour> .Revert(); try { Plugins.Dispose(); } catch (Exception e) { UnityEngine.Debug.LogException(e); } }