Advertisement
LittleAngel

Untitled

Mar 17th, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Mouse Down won't register
  2. void DrawMyWindow (int windowID) {
  3. // code
  4. if (Input.GetMouseButtonDown(0)) {
  5. Debug.Log ("MOUSE DOWN!");
  6. }
  7.  
  8. if (Input.GetMouseButtonUp (0)) {
  9. Debug.Log ("MOUSE UP!");
  10. // more code
  11. }
  12. }
  13.  
  14. // Mouse Down works fine
  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