Question by
alagimel26 · Sep 22, 2015 at 10:35 AM ·
load scene
i cant load scene
So Im using 3d text to act as my button but it doesnt load my scene named SAD1
this is the script i attached to my 3d text
var isQuit=false;
function OnMouseEnter(){ //change text color GetComponent.().material.color=Color.blue; }
function OnMouseExit(){ //change text color GetComponent.().material.color=Color.green; }
function OnMouseClick(){ //is this quit if (isQuit==true) { //quit the game
Application.Quit(); } else { //load level Application.LoadLevel("SAD1"); } }
function Update(){ //quit game if escape key is pressed if (Input.GetKey(KeyCode.Escape)) { Application.Quit(); } }
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612034619im_/https://answers.unity.com/themes/thub/images/avi.jpg)