Нажимаю на обьект на который повешен скрипт, и ничего не происходит. Объект двумерный.
Скрипт:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class omsd : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnMouseDown ()
{
Debug.Log("Has been click.");
}
}