here’s the screenshot:
-
disVar
is only initialized inAwake();
you should create a field
private int disVar;
- In LateUpdate
if(disVar = int 42);
should beif(disVar == 42)
without;
at the end of the line - LateUpdate is never closed with a curling brackets
}