public void OnDisable() { // UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived -= IncomingSnapshot; if (_treeMapView != null) { _treeMapView.CleanupMeshes(); } }
internal void OnDestroy() { UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived -= IncomingSnapshot; if (_treeMapView != null) { _treeMapView.CleanupMeshes(); } }
void OnDisable() { if (_registered) { UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived -= IncomingSnapshotByBtn; _registered = false; } if (_treeMapView != null) { _treeMapView.CleanupMeshes(); } }
void OnDestroy() { _modeMgr.Clear(); if (_treeMapView != null) { _treeMapView.CleanupMeshes(); } if (NetManager.Instance != null) { NetManager.Instance.Dispose(); NetManager.Instance = null; } }
void OnDisable() { if (_registered) { UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived -= OnSnapshotReceived; _registered = false; } if (_treeMapView != null) { _treeMapView.CleanupMeshes(); } if (PANetDrv.Instance != null) { PANetDrv.Instance.Dispose(); PANetDrv.Instance = null; } }