// Update is called once per frame private void Update() { if (Input.GetKeyDown("e") && collidingArrow) { bowScript.AddAmmo(1); scoreController.UpdateArrows(1); if (currentCollidingArrow.transform.gameObject.name == "Arrow Rope(Clone)") { bowScript.AddRope(1); scoreController.UpdateRope(1); } Destroy(currentCollidingArrow.transform.gameObject); } }