So i was trying to create a button that once pressed (UI button) it will generate a given number of objects, but something doesn’t work, as it tells me to fix all compiler errors.
Here is the code:
public class Gen_Food : MonoBehaviour {
public GameObject Food;
public int counter=0;
public float Pos_x;
public float Pos_z;
What are your compiler errors? Open up the console by clicking on the status bar along the bottom of the Unity window. You can copy and paste out of that window.