Im following a tutorial in youtube and i noticed something,what does [,] means?
The class constructor :
using UnityEngine;
using System.Collections;
public class Node {
public Vector3 worldpoint;
public bool walkable;
public Node parent;
public int hcost,gcost;
public int gridX,gridY;
public Node(Vector3 _worldpoint,bool _walkable,int _gridX,int _gridY)
{
worldpoint = _worldpoint;
walkable = _walkable;
gridX = _gridX;
gridY = _gridY;
}
public int fCost
{
get
{
return hcost + gcost;
}
}
}
The using of the class constructor :
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Grid : MonoBehaviour {
Node[,] grid;
}