public void Reset () { if (Type == GridCellType.Path) { type = GridCellType.Walkable; } State = GridCellState.NotVisited; Parent = null; H = G = 0; }