var Reloading : boolean = false;
it just doesn’t work it should work but then i get the error.
and im not sure how to properly reference it but i had this:
Reloading = true;
var Reloading : boolean = false;
it just doesn’t work it should work but then i get the error.
and im not sure how to properly reference it but i had this:
Reloading = true;
The simple line var Reloading : boolean = false;
can not cause this error.
What this error actually means is that you somewhere accidently try to invoke the “Reloading” boolean.
Maybe you have another function with the same or a similar name (like function Reload()
?) and now you accidently called your variable Reloading()
.
Make tripple sure that you actually posted the line that the compiler is complaining about. You get to the line easily by double clicking on the error in Unity.