Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // code
- if (Input.GetMouseButtonDown(0)) {
- Debug.Log ("MOUSE DOWN!");
- GUI.contentColor = Color.red;
- }
- if (Input.GetMouseButtonUp (0)) {
- Debug.Log ("MOUSE UP!");
- // more code
- }
- void Update () {
- if (Input.GetMouseButtonDown(0)) {
- print ("Mouse Button Down !");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement