Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Event.current.button == 0 && Event.current.type == EventType.MouseDown) {
- Debug.Log ("MOUSE DOWN!");
- }
- if (Event.current.button == 0 && Event.current.type == EventType.mouseDown) {
- Debug.Log ("mOUSE DOWN!");
- }
- if (Event.current.button == 0 && Event.current.type == EventType.MouseUp) {
- Debug.Log ("MOUSE Up!");
- }
- if (Event.current.button == 0 && Event.current.type == EventType.mouseUp) {
- Debug.Log ("mOUSE DOWN!");
- }
- if (Event.current.type == EventType.MouseDown) {
- Debug.Log ("only MOUSE DOWN!");
- }
- if (Event.current.type == EventType.mouseDown) {
- Debug.Log ("only mOUSE DOWN!");
- }
- if (Event.current.type == EventType.MouseUp) {
- Debug.Log ("only MOUSE Up!");
- }
- if (Event.current.type == EventType.mouseUp) {
- Debug.Log ("only mOUSE DOWN!");
- }
- // THE ONLY ONE THAT WORKS
- if (Event.current.button == 0) {
- Debug.Log ("MOUSE CLICK!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement