Answer the question
In order to leave comments, you need to log in
UI in Unity and NullReferenceException?
Here is the official video tutorial from unity https://unity3d.com/ru/learn/tutorials/projects/ro... - at the end of which the author makes a check
if(count>=12)
{
WinText.text="YouWin!"
}
Answer the question
In order to leave comments, you need to log in
Maybe early in GameDev, when even NullReferenceException puts such a dead end? At first, at least with C#, can you figure it out?
Well, and so, your cube is not initialized and there is no check for this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question