// Update is called once per frame void Update() { if (Input.GetKey(KeyCode.Mouse0)) { //On left-mouse click set random value on applet's progress bar System.Random random = new System.Random(); int val = random.Next(0, 100); LogitechGSDK.LogiArxSetTagPropertyById("progressbarProgress", "style.width", "" + val + "%"); } ///Switch index file on right-mouse down and up if (Input.GetKey(KeyCode.I)) { LogitechGSDK.LogiArxSetIndex("applet.html"); } if (Input.GetKey(KeyCode.G)) { LogitechGSDK.LogiArxSetIndex("gameover.html"); } }