Exemple #1
0
 private void OnMouseOver()
 {
     if (Vector3.Distance(transform.position, player.transform.position) < 5 && !isPlaced)
     {
         if (Input.GetKeyDown(KeyCode.E) && !playerItemScript.GetHasItem())
         {
             CollisionOff(true);
             playerItemScript.GrabItem();
             transform.parent = holdObject;
         }
     }
 }