Advertisement
LittleAngel

Untitled

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