Exemplo n.º 1
0
 private void Update()
 {
     if (!movement.enabled)
     {
         return;
     }
     if (Input.GetKeyDown(KeyCode.E))
     {
         objects.TryPickClosest(this);
     }
     if (rightHand && Input.GetMouseButton(0))
     {
         rightHand.Use();
     }
 }