can someone explain to me what this error message is all about: The type ‘UnityEngine.Texture2D’ does not have a visible constructor that matches the argument list ‘(Object, Object)’.
this is the line where the error happens:
var _maze_width=50;
var _maze_height=50;
var maze = new Texture2D(_maze_width, _maze_height);
any ideas? i just dont get it… there are other similar problems for example in this lines:
thats the problem then. its defined as transform, so Instantiate will return a transform too, to which you would cast it, to then use .gameObject to get the game object of this transform