Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // button-ok
- // Main Menu Button
- var myCamera1:Camera;
- var myCamera2:Camera;
- function OnMouseOver ()
- {
- if (Input.GetMouseButtonDown(0))
- {
- myCamera1.enabled =false;
- myCamera2.enabled =true;
- print ("You clicked Button-OK");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement