//Detects if the player collides with the shell void OnTriggerEnter2D(Collider2D other) { if (pickupDelay > 0) { return; } //adds shells to crab if (other.tag == "Player") { Destroy(gameObject); shellAdder.Gain_Shell(worth, shellType); } }