public void BlockDestroyed(int pointValue) { boundaryHits = 0; if (playerAgent) { playerAgent.BlockHit(); } playerData.Points += pointValue; UpdatePointsUI(); --activeBlocks; if (activeBlocks <= 0) { gameManager.PlayerClearedBlocks(this); } }