Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Helppp mee script unity 5

$
0
0
convert to unity 5 var quit=false; function OnMouseEnter() { renderer.material.color = Color.red; //Change Color to red! } function OnMouseExit() { renderer.material.color = Color.white; //Change Color to white! } function OnMouseUp() { if (quit == true) { Application.Quit(); //If you click on quit aplication quits. } else { Application.LoadLevel(1); //If you click on other button it loads game! } } function Update() { if (Input.GetKey(KeyCode.Escape)) //If you press (escape) game force closes! { Application.Quit(); } }

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>