Hello,
I have a script here:
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)
But when i test it on my samsung galaxy s2, And click on the object which have that script, it doesn’t do anything and it won’t go to the next level. Also it’s verry slow, like 10 fps. What can I do about that? And would you guys help with the script? Thanks!