Advertisement
LittleAngel

Untitled

Mar 17th, 2011
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. if (Event.current.button == 0 && Event.current.type == EventType.MouseDown) {
  2. Debug.Log ("MOUSE DOWN!");
  3. }
  4.  
  5. if (Event.current.button == 0 && Event.current.type == EventType.mouseDown) {
  6. Debug.Log ("mOUSE DOWN!");
  7. }
  8.  
  9. if (Event.current.button == 0 && Event.current.type == EventType.MouseUp) {
  10. Debug.Log ("MOUSE Up!");
  11. }
  12.  
  13. if (Event.current.button == 0 && Event.current.type == EventType.mouseUp) {
  14. Debug.Log ("mOUSE DOWN!");
  15. }
  16. if (Event.current.type == EventType.MouseDown) {
  17. Debug.Log ("only MOUSE DOWN!");
  18. }
  19.  
  20. if (Event.current.type == EventType.mouseDown) {
  21. Debug.Log ("only mOUSE DOWN!");
  22. }
  23.  
  24. if (Event.current.type == EventType.MouseUp) {
  25. Debug.Log ("only MOUSE Up!");
  26. }
  27.  
  28. if (Event.current.type == EventType.mouseUp) {
  29. Debug.Log ("only mOUSE DOWN!");
  30. }
  31.  
  32. // THE ONLY ONE THAT WORKS
  33. if (Event.current.button == 0) {
  34. Debug.Log ("MOUSE CLICK!");
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement