Beispiel #1
0
 public void OnPointerDown(PointerEventData eventData)
 {
     startDragPosition = canvasRenderer.transform.position;
     isDragging        = true;
     InventoryExample.StartDragging(this);
     canvasRenderer.transform.SetAsLastSibling();
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (isDragging)
     {
         if (Input.GetMouseButton(0))
         {
             canvasRenderer.transform.position = Input.mousePosition;
         }
         else
         {
             isDragging = false;
             InventoryExample.StopDragging();
         }
     }
 }
Beispiel #3
0
 public void ValueChangeCheck()
 {
     InventoryExample.UpdateColorBall();
 }