public void OnTriggerEnter2D(Collider2D coll) { if (coll.gameObject.tag == "Player") { manager.pickupGem(this); } }