예제 #1
0
 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();
            }
        }
예제 #3
0
        void OnDisable()
        {
            if (_registered)
            {
                UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived -= IncomingSnapshotByBtn;
                _registered = false;
            }

            if (_treeMapView != null)
            {
                _treeMapView.CleanupMeshes();
            }
        }
예제 #4
0
        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;
            }
        }