mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-10-30 20:47:08 +01:00 
			
		
		
		
	Minor Cleanup
This commit is contained in:
		| @@ -18,12 +18,10 @@ public class NPCController : MonoBehaviour | |||||||
|     void Start() |     void Start() | ||||||
|     { |     { | ||||||
|         startPoint = new Vector3(0, 0, 0); |         startPoint = new Vector3(0, 0, 0); | ||||||
|         endPoint = new Vector3(200, 0, 900); |         endPoint = new Vector3(100, 0, 40); | ||||||
|         rows = 30; |         rows = 30; | ||||||
|         Map = new PathMap(new Vector3(0, 0, 0), rows, rows, 900); |         Map = new PathMap(new Vector3(0, 0, 0), rows, rows, 900); | ||||||
|         Map.setupMapWithNextLayer(); |         Map.setupMapWithNextLayer(); | ||||||
|  |  | ||||||
|         List<PathNode> parentPath; |  | ||||||
|         //Looking through the low res search |         //Looking through the low res search | ||||||
|          |          | ||||||
|     } |     } | ||||||
| @@ -40,10 +38,10 @@ public class NPCController : MonoBehaviour | |||||||
|              |              | ||||||
|  |  | ||||||
|         } |         } | ||||||
|         else if(!second && first){ |         else if(!second && first && true){ | ||||||
|             second = true; |             second = true; | ||||||
|             Debug.Log(Time.time * 1000); |             Debug.Log(Time.time * 1000); | ||||||
|             if (path != null && true) |             if (path != null && false) | ||||||
|             { |             { | ||||||
|                 for (int i = 0; i < path.Count - 1; i++) |                 for (int i = 0; i < path.Count - 1; i++) | ||||||
|                 { |                 { | ||||||
|   | |||||||
| @@ -17,7 +17,6 @@ public class PathMap | |||||||
|     private float height = 0; |     private float height = 0; | ||||||
|     public Terrain t; |     public Terrain t; | ||||||
|     private float w, h; |     private float w, h; | ||||||
|     private bool divided = false; |  | ||||||
|  |  | ||||||
|     private List<PathNode> openList; |     private List<PathNode> openList; | ||||||
|     private List<PathNode> closedList; |     private List<PathNode> closedList; | ||||||
| @@ -388,8 +387,6 @@ public class PathMap | |||||||
|  |  | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         divided = true; |  | ||||||
|     } |     } | ||||||
|     private float heuristic(PathNode p1, PathNode p2) |     private float heuristic(PathNode p1, PathNode p2) | ||||||
|     { |     { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 juliuse98
					juliuse98