public OnDrag ( |
||
eventData | ||
Результат | void |
public void OnDrag(PointerEventData eventData) { Debug.Log("DECK: On drag"); //// if (instantiatedChild != null) { dragHandlerScript.OnDrag(eventData); } //// // transform.position = Camera.main.ScreenToWorldPoint(pos); ////instance.transform.position = Camera.main.ScreenToWorldPoint(eventData.position); ////instance.transform.position = new Vector3(transform.position.x, transform.position.y, 0); //Debug.Log(Camera.main.ScreenToWorldPoint(eventData.position)); // transform.position = Camera.main.WorldToScreenPoint(pos); // transform.position = Input.mousePosition; }