void Start()
    {
        canvasPlayingUI = GameObject.FindGameObjectWithTag("CanvasPlayingUI");
        if (canvasPlayingUI == null)
        {
            Debug.Log("ATTENZIONE!! canvasPlayingUI non trovato!! Assicurarsi che il relativo prefab sia nella scena");
        }
        else
        {
            playingUI = canvasPlayingUI.GetComponent <PlayingUI> ();
        }

        controller    = GameObject.FindGameObjectWithTag("Controller");
        cursorHandler = controller.GetComponent <CursorHandler> ();

        Sprite[] sprites = new Sprite[1];
        sprites [0] = info;


        if (playingUI != null)
        {
            playingUI.setSprites(sprites, PlayingUI.UIPosition.UpperRight);
        }

        Sprite buttonSprite;

        if (cursorHandler.useController)
        {
            buttonSprite = controllerButton;
        }
        else
        {
            buttonSprite = keyboardButton;
        }

        if (playingUI != null)
        {
            playingUI.setButtonSprite(PlayingUI.UIPosition.UpperRight, buttonSprite);

            playingUI.setVerticalButton(PlayingUI.UIPosition.UpperRight, false);
            playingUI.setSpritesSize(PlayingUI.UIPosition.UpperRight, PlayingUI.UISize.Big);

            playingUI.updateSpritesOnScreen(PlayingUI.UIPosition.UpperRight);
        }
    }
    public void updateModifyUI()
    {
        if (actualGlass.canBeModified)
        {
            Sprite[] tempSpriteList = new Sprite[1];
            tempSpriteList [0] = modify;

            playingUI.setSprites(tempSpriteList, PlayingUI.UIPosition.BottomLeft);
            if (actualUseController)
            {
                playingUI.setButtonSprite(PlayingUI.UIPosition.BottomLeft, modControllerSprite);
            }
            else
            {
                playingUI.setButtonSprite(PlayingUI.UIPosition.BottomLeft, modKeyboardSprite);
            }

            playingUI.setSpritesSize(PlayingUI.UIPosition.BottomLeft, PlayingUI.UISize.Big);
            playingUI.setVerticalButton(PlayingUI.UIPosition.BottomLeft, false);
        }
        else
        {
            /*
             * Sprite[] tempSpriteList = new Sprite[1];
             * tempSpriteList [0] = new Sprite ();
             *
             * playingUI.setSprites (tempSpriteList, PlayingUI.UIPosition.BottomLeft);
             * playingUI.setButtonSprite (PlayingUI.UIPosition.BottomLeft, tempSpriteList [0]);
             * playingUI.updateSpritesOnScreen (PlayingUI.UIPosition.BottomLeft);
             */
            playingUI.cleanPositionGameObjects(PlayingUI.UIPosition.BottomLeft);
            playingUI.cleanPositionButtonObject(PlayingUI.UIPosition.BottomLeft);
            playingUI.updateSpritesOnScreen(PlayingUI.UIPosition.BottomLeft);
        }

        playingUI.updateSpritesOnScreen(PlayingUI.UIPosition.BottomLeft);
    }