Pathfinding.LayerGridGraph.OnDestroy C# (CSharp) Method

OnDestroy() public method

public OnDestroy ( ) : void
return void
		public override void OnDestroy () {
			base.OnDestroy ();
			//Clean up a reference in a static variable which otherwise should point to this graph forever and stop the GC from collecting it
			RemoveGridGraphFromStatic ();
			
			//LevelGridNode.RemoveGridGraph (this);
		}