public float hack = 0.00f;
if(hack = 9999999f){
Application.LoadLevel("YUWIN");
}
those are snipets taken out of the code. What did I do wrong here?
public float hack = 0.00f;
if(hack = 9999999f){
Application.LoadLevel("YUWIN");
}
those are snipets taken out of the code. What did I do wrong here?
Set equal “==” instead of “=” in your if function:
if(hack == 9999999f){
Application.LoadLevel(“YUWIN”);
}
if(hack == 999999f){
//do something
}
//Get used to calling privates unless you will be passing vars.
private float hack = 0f;
if(hack == 9999999) //'==' is a comparison "Equals"
Application.loadLevel("YUWIN");