Advertisement
LittleAngel

Untitled

Mar 17th, 2011
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. // code
  2. if (Input.GetMouseButtonDown(0)) {
  3. Debug.Log ("MOUSE DOWN!");
  4. GUI.contentColor = Color.red;
  5. }
  6.  
  7. if (Input.GetMouseButtonUp (0)) {
  8. Debug.Log ("MOUSE UP!");
  9. // more code
  10. }
  11.  
  12.  
  13. void Update () {
  14. if (Input.GetMouseButtonDown(0)) {
  15. print ("Mouse Button Down !");
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement