so i made this script but
var inBasket : boolean = false;
function OnTriggerEnter (other : Collider) {
// You should add a check to be sure that the collided object
// is what you’re looking for, e.g. you could check for a tag
inBasket = true;
StartCoroutine(“EndLevel”);
}
function OnTriggerExit (other : Collider) {
inBasket = false;
StopCoroutine(“EndLevel”);
}
function EndLevel() {
yield WaitForSeconds(3);
if (inBasket)
Application.LoadLevel (Application.loadedLevel+1);
}
at the end with Application.LoadLevel (Application.loadedLevel+1);
i need it to show a gui with the words Next levl and when i click the button it goes to the next level
and how do i change the gui skins