hey
having a bit o trouble w this one.
function Update () {
if(Application.loadedLevel("Level2_2")){
Destroy(gameObject);
}
}
I want to destroy an Object if level number 2 in build list( named Level2_2) has been loaded. Ive tried every way I can think of…Is what Im trying to do possibile?
Thanks again
AC
I’m not sure, not time to check it now, but maybe this will work?
function OnLevelWasLoaded (level : int) {
if (level == 2) {
Destroy(gameObject);
}
}
if(Application.loadedLevelName == "Level2_2") {...}
Wicked. I wont be able to test properly on a fast computer for a day or two but I’m sure they will get me there. My PPC takes quite a while to load, so I added music. On fast intels the music tracks get overlapped…due to quicker loading,
Thanks
AC :lol: