Beispiel #1
0
 private void Update()
 {
     if (isPickedItem)
     {
         PickedItem.SetPosition(MousePosition());
     }
     else if (toolTipShow)
     {
         toolTip.SetLocalPosition(MousePosition() + toolTipPositionOffSet);
     }
     if (isPickedItem && Input.GetMouseButtonDown(0) && !UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject(-1))
     {
         isPickedItem = false;
         PickedItem.Hide();
     }
 }