protected void placeBrick()
    {
        if (ButtonsManager.getAmount() < script.getValue())
        {
            ButtonsManager.flash();
            return;
        }

        timeout = 0.5f;
        if (script.placeSolid())
        {
            lego.transform.position += Vector3.up * script.getHeight();
            ButtonsManager.spend(script.getValue());
        }
    }
    private void addScore()
    {
        if (added)
        {
            return;
        }
        int buttons = ButtonsManager.getAmount();

        if (buttons > 0)
        {
            addValue.text = "+" + (buttons * multiplyButtons);
            ButtonsManager.spend(buttons);
            ScoreManager.add(buttons * multiplyButtons);
        }
        added = true;
    }