Hi guys, i know this question has been answered many times, but none of them seem to help. I have a main menu, created using 3D text. I have a script that makes it so that once you click the text it loads the level. But i wan’t to make it so that it loads up a loading screen and then the level. All other scripts never seem to work for 3D text, therefore i have asked this question. Here’s my script for making the 3D text work as buttons.
var levelToLoad : String;
var soundhover : AudioClip;
var beep : AudioClip;
var QuitButton : boolean = false;
function OnMouseEnter(){
audio.PlayOneShot(soundhover);
}
function OnMouseUp(){
audio.PlayOneShot(beep);
yield new WaitForSeconds(0.35);
if(QuitButton){
Application.Quit();
}
else{
Application.LoadLevel(levelToLoad);
}
}
@script RequireComponent(AudioSource)