Hello! I'm new to Unity and I can not do the OnMouseUp () method; work
using UnityEngine;
using System.Collections;
public class touch : MonoBehaviour {
void OnMouseUp() {
Debug.Log("Drag ended!");
}}
I've already assigned the script to the object. I click on it and nothing happens. Can anyone explain me why it does not work?