Initial commit

This commit is contained in:
Savina Rizdafayi
2025-07-12 19:53:40 +07:00
commit d7120c397a
933 changed files with 246809 additions and 0 deletions

22
Assets/Scripts/Node.cs Normal file
View File

@ -0,0 +1,22 @@
using UnityEngine;
public class Node
{
public bool walkable;
public Vector3 worldPosition;
public int gridX, gridY;
public int gCost;
public int hCost;
public int fCost { get { return gCost + hCost; } }
public Node parent;
public Node(bool _walkable, Vector3 _worldPos, int _gridX, int _gridY)
{
walkable = _walkable;
worldPosition = _worldPos;
gridX = _gridX;
gridY = _gridY;
}
}