Answer the question
In order to leave comments, you need to log in
Why is the value of the generated class null?
private void Start()
{
grid = new Grid(100, 100, 10);
}
if (Input.GetMouseButtonDown(0))
{
int width = grid.GetWidth(); <-- grid = null
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question