void setPulsingBook()
 {
     pulsingBook = gameObject.AddComponent <PulsingUIElement>();
     //pulsingBook.setVariables(GeneralFinder.playingUI.getImageObject(PlayingUI.UIPosition.UpperRight, 0),8.0f, 1.1f, 1.0f);
     pulsingBook.setVariables(GeneralFinder.playingUI.getButtonObject(PlayingUI.UIPosition.UpperRight), 8.0f, pulseButtonScale, pulseButtonSpeed);
     wasPulsingBookNull = false;
 }
    void Update()
    {
        if (Input.GetKeyUp(KeyCode.N))
        {
            playingUILateral.showIcons(PlayingUILateral.UIPosition.Right);
        }

        if (Input.GetKeyUp(KeyCode.M))
        {
            playingUILateral.showIcons(PlayingUILateral.UIPosition.Right, false);
        }

        if (Input.GetKeyUp(KeyCode.V))
        {
            playingUILateral.showIcons(PlayingUILateral.UIPosition.Left);
        }

        if (Input.GetKeyUp(KeyCode.B))
        {
            playingUILateral.showIcons(PlayingUILateral.UIPosition.Left, false);
        }

        if (Input.GetKeyUp(KeyCode.K))
        {
            if (left)
            {
                playingUILateral.setSprites(left02, PlayingUILateral.UIPosition.Left);
            }
            else
            {
                playingUILateral.setSprites(left01, PlayingUILateral.UIPosition.Left);
            }

            left = !left;
            playingUILateral.updateSpritesOnScreen(PlayingUILateral.UIPosition.Left);
        }

        if (Input.GetKeyUp(KeyCode.L))
        {
            if (right)
            {
                playingUILateral.setSprites(right02, PlayingUILateral.UIPosition.Right);
            }
            else
            {
                playingUILateral.setSprites(right01, PlayingUILateral.UIPosition.Right);
            }

            right = !right;
            playingUILateral.updateSpritesOnScreen(PlayingUILateral.UIPosition.Right);
        }

        if (Input.GetKeyUp(KeyCode.J))
        {
            playingUILateral.setExclamation(PlayingUILateral.UIPosition.Right, 2, true);
            playingUILateral.setExclamation(PlayingUILateral.UIPosition.Right, 3, true);
        }
        if (Input.GetKeyUp(KeyCode.H))
        {
            playingUILateral.setExclamation(PlayingUILateral.UIPosition.Right, 2, false);
        }
        if (Input.GetKeyUp(KeyCode.G))
        {
            playingUILateral.removeAllExclamations();
        }

        if (Input.GetKeyUp(KeyCode.O))
        {
            PulsingUIElement pulsing = gameObject.AddComponent <PulsingUIElement>();
            pulsing.setVariables(playingUILateral.getImageObject(PlayingUILateral.UIPosition.Right, 1), 10.0f, 1.5f, 4.0f);

            PulsingUIElement pulsing02 = gameObject.AddComponent <PulsingUIElement>();
            pulsing02.setVariables(playingUI.getImageObject(PlayingUI.UIPosition.UpperRight, 0), 10.0f, 1.5f, 4.0f);
        }

        if (Input.GetKeyUp(KeyCode.U))
        {
            PickingObjectGraphic pick = gameObject.AddComponent <PickingObjectGraphic>();
            pick.setVariables(glassSprite, PlayingUI.UIPosition.BottomRight, 0);
        }

        if (Input.GetKeyUp(KeyCode.Y))
        {
            PickingObjectGraphic pick = gameObject.AddComponent <PickingObjectGraphic>();
            pick.setVariables(glassSprite, PlayingUILateral.UIPosition.Right, 2);
            playingUILateral.showIconsImmediately(PlayingUILateral.UIPosition.Right, true);
            playingUILateral.showIconsImmediately(PlayingUILateral.UIPosition.Left, true);
        }

        if (Input.GetKeyUp(KeyCode.T))
        {
            PickingObjectGraphic pick = gameObject.AddComponent <PickingObjectGraphic>();
            pick.setVariables(glassSprite, PlayingUILateral.UIPosition.Left, 0);
            playingUILateral.showIconsImmediately(PlayingUILateral.UIPosition.Right, false);
            playingUILateral.showIconsImmediately(PlayingUILateral.UIPosition.Left, false);
        }
    }