public void OnLevelSelectMinus()
 {
     levelSelectCounter -= 1;
     if (levelSelectCounter < 1)
     {
         levelSelectCounter = 1;
     }
     levelSelectDisplayController.SetText(levelSelectCounter.ToString(), 1.0f);
 }
    public PhysicalUIBlockController CreateBlock(
        Transform prefab, string text,
        Vector3 position,
        Vector3 scale,
        PhysicalUIBlockController.Action action)
    {
        Transform block = Instantiate(
            prefab,
            position,
            Quaternion.identity);

        block.transform.localScale = scale;
        PhysicalUIBlockController blockController = block.GetComponent <PhysicalUIBlockController>();
        float textStretch = scale.z / scale.x;

        blockController.SetText(text, textStretch);
        blockController.SetAction(action);
        createdObjects.Add(block.gameObject);
        return(blockController);
    }