mercredi 27 septembre 2017

i want to make a if statement if the 2 gameobject has been dragged in a same position.. i tried trigger events but my scripts did'nt work

region IDragHandler implementation

public void OnDrag (PointerEventData eventData)
{

    transform.position = Input.mousePosition;
}

enter image description here

Aucun commentaire:

Enregistrer un commentaire