private void OnTriggerStay(Collider other) { bool shiftkey = Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift); if (other.name == "Key1" && Input.GetKeyDown(KeyCode.D) && shiftkey == true) { ui.CountS(); Destroy(gameObject); } else if (other.name == "Key2" && Input.GetKeyDown(KeyCode.F) && shiftkey == true) { ui.CountS(); Destroy(gameObject); } else if (other.name == "Key3" && Input.GetKeyDown(KeyCode.J) && shiftkey == true) { ui.CountS(); Destroy(gameObject); } else if (other.name == "Key4" && Input.GetKeyDown(KeyCode.K) && shiftkey == true) { ui.CountS(); Destroy(gameObject); } }