Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var isQuitButton = false;
- function OnMouseEnter()
- {
- renderer.material.color = Color.green;
- }
- function OnMouseExit()
- {
- renderer.material.color = Color.white;
- }
- function On Mouse Up()
- {
- if ( isQuitButton )
- {
- Application.Quit();
- }
- else
- {
- Application.LoadLevel(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement