Cum de a crea obiectul de evenimente onclick unitate
Exemple de cod
0
0
unitatea onclick obiect
using UnityEngine;
using System.Collections;
public class Click : MonoBehaviour {
public GameObject gameObjectToClick;
void OnClick(){
gameObjectToClick.SpecialFunction(); //call special function you wanted to call
}
}