public static void HitBrick(GameObject brick) { if (brick.CompareTag("Breakable")) { BrickController bc = brick.GetComponent <BrickController>(); bc.handleHits(); } }