Created
February 16, 2016 10:57
-
-
Save Arakade/5d95e1bb155eb779115a to your computer and use it in GitHub Desktop.
A* Project better colours for tag visualization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git "a/C:\\Users\\User\\AppData\\Local\\Temp\\TortoiseGit\\Bas7CB4.tmp\\Base-25a36d5-left.cs" "b/D:\\Users\\User\\Dev\\Unity3D\\AIExperiments\\Assets\\AstarPathfindingProject\\Generators\\Base.cs" | |
index c530058..a8802b7 100644 | |
--- "a/C:\\Users\\User\\AppData\\Local\\Temp\\TortoiseGit\\Bas7CB4.tmp\\Base-25a36d5-left.cs" | |
+++ "b/D:\\Users\\User\\Dev\\Unity3D\\AIExperiments\\Assets\\AstarPathfindingProject\\Generators\\Base.cs" | |
@@ -304,7 +304,7 @@ namespace Pathfinding { | |
c = Color.Lerp (AstarColor.ConnectionLowLerp,AstarColor.ConnectionHighLerp, ((float)node.Penalty-AstarPath.active.debugFloor) / (AstarPath.active.debugRoof-AstarPath.active.debugFloor)); | |
break; | |
case GraphDebugMode.Tags: | |
- c = AstarMath.IntToColor ((int)node.Tag,0.5F); | |
+ c = AstarColor.GetAreaColor(node.Tag); | |
break; | |
default: | |
if (data == null) return AstarColor.NodeConnection; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment