private void OnTriggerEnter2D(Collider2D other) { LinkController controller = other.GetComponent <LinkController>(); if (controller != null && collectible) { controller.ChangeMaxHealth(); Destroy(gameObject); controller.PlaySound(collected); } }