public void OnTriggerStay2D(Collider2D collision) // there are some slight loose? { if (Input.GetKeyDown("space")) { switch (collision.tag) { case "Item": itemFunction.PlayerPickUpItem(collision.gameObject); break; case "Cover": //TODO play some animation that simulates hiding player.SetActive(false); break; } } }