Cleanup compile warnings, cleanup logs, spruce up level selection menu
This commit is contained in:
@@ -834,7 +834,7 @@ public class AstarPath : VersionedMonoBehaviour {
|
||||
} else if (path.error) {
|
||||
Debug.LogWarning(debug);
|
||||
} else {
|
||||
Debug.Log(debug);
|
||||
// Debug.Log(debug);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1379,7 +1379,9 @@ public class AstarPath : VersionedMonoBehaviour {
|
||||
if (!Application.isPlaying) return;
|
||||
|
||||
if (logPathResults == PathLog.Heavy)
|
||||
Debug.Log("+++ AstarPath Component Destroyed - Cleaning Up Pathfinding Data +++");
|
||||
{
|
||||
// Debug.Log("+++ AstarPath Component Destroyed - Cleaning Up Pathfinding Data +++");
|
||||
}
|
||||
|
||||
if (active != this) return;
|
||||
|
||||
@@ -1397,7 +1399,9 @@ public class AstarPath : VersionedMonoBehaviour {
|
||||
pathProcessor.queue.TerminateReceivers();
|
||||
|
||||
if (logPathResults == PathLog.Heavy)
|
||||
Debug.Log("Processing Possible Work Items");
|
||||
{
|
||||
// Debug.Log("Processing Possible Work Items");
|
||||
}
|
||||
|
||||
// Stop the graph update thread (if it is running)
|
||||
graphUpdates.DisableMultithreading();
|
||||
@@ -1406,21 +1410,27 @@ public class AstarPath : VersionedMonoBehaviour {
|
||||
pathProcessor.JoinThreads();
|
||||
|
||||
if (logPathResults == PathLog.Heavy)
|
||||
Debug.Log("Returning Paths");
|
||||
{
|
||||
// Debug.Log("Returning Paths");
|
||||
}
|
||||
|
||||
|
||||
// Return all paths
|
||||
pathReturnQueue.ReturnPaths(false);
|
||||
|
||||
if (logPathResults == PathLog.Heavy)
|
||||
Debug.Log("Destroying Graphs");
|
||||
{
|
||||
// Debug.Log("Destroying Graphs");
|
||||
}
|
||||
|
||||
|
||||
// Clean up graph data
|
||||
data.OnDestroy();
|
||||
|
||||
if (logPathResults == PathLog.Heavy)
|
||||
Debug.Log("Cleaning up variables");
|
||||
{
|
||||
// Debug.Log("Cleaning up variables");
|
||||
}
|
||||
|
||||
// Clear variables up, static variables are good to clean up, otherwise the next scene might get weird data
|
||||
|
||||
@@ -1781,7 +1791,7 @@ public class AstarPath : VersionedMonoBehaviour {
|
||||
System.GC.Collect();
|
||||
|
||||
if (logPathResults != PathLog.None && logPathResults != PathLog.OnlyErrors) {
|
||||
Debug.Log("Scanning - Process took "+(lastScanTime*1000).ToString("0")+" ms to complete");
|
||||
// Debug.Log("Scanning - Process took "+(lastScanTime*1000).ToString("0")+" ms to complete");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user