mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-10-31 05:07:08 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/juliuse98-patch-1' into main
This commit is contained in:
		| @@ -7,24 +7,11 @@ public class PathNode | ||||
|  | ||||
|     private Vector3 position; | ||||
|     public Vector2 index; | ||||
|     private float scoreF; | ||||
|     private float scoreG; | ||||
|     private float scoreH; | ||||
|     public List<PathNode>  neigbors; | ||||
|     private float score; | ||||
|     public PathNode(Vector3 Pos, float Score) { | ||||
|  | ||||
|     private PathNode previous; | ||||
|      | ||||
|     public PathNode(Vector3 Pos) { | ||||
|         neigbors = new List<PathNode>(); | ||||
|         position = Pos; | ||||
|         scoreG = Mathf.Infinity; | ||||
|         scoreF = Mathf.Infinity; | ||||
|         scoreH = Mathf.Infinity; | ||||
|         score = Score; | ||||
|     } | ||||
|      | ||||
|     public Vector3 Position { get => position; set => position = value; } | ||||
|     public float Hscore { get => scoreH; set => scoreH = value; } | ||||
|     public float Gscore { get => scoreG; set => scoreG = value; } | ||||
|     public float Fscore { get => scoreF; set => scoreF = value; } | ||||
|     public PathNode Previous { get => previous; set => previous = value; } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 DerTyp187
					DerTyp187