Is possible to make someething like that?
print (Application.loadedLevel);
if(1)
{
something
}
Is possible to make someething like that?
print (Application.loadedLevel);
if(1)
{
something
}
The Print/Debug.Log command only “says” what you tell it to say, so there’s no point trying to output something to the log and then testing that value against something else (which I think is what you’re trying to describe)… you simply need to test the value that you printed in the first place (which is what Loius told you already).
if (Application.loadedLevel == “1”)