private void OnTriggerEnter2D(Collider2D collision) { if (!hit && collision.transform.tag == "Ball") { parentPalette.Charge(); hit = true; } if (collision.transform.tag == "Knife") { parentPalette.KnifeHit(); } }