I have no idea about what I'm doing wrong, I want to access the private integers through a get accessor but I just can't get it to work. The Map class compiles fine but I can't access the get method from one of its instances in MapViewer.
I also tried to read about it in the official documentation and the code should be fine, yet it isn't
Thanks!
public class Map {
    int xSize {get;} = 0;
    int ySize {get;} = 0;
    public Map(int xSize, int ySize){
        this.xSize = xSize;
        this.ySize = ySize;
    }
}
public class MapViewer : MonoBehaviour {
    int xSize = 20;
    int ySize = 20;
    Map map;
    Texture2D image;
    void Start () {
        map = new Map (xSize, ySize);
        image = new Texture2D(map.???, map.???); //The issue is here
    }
 
     
     
     
     
    