Skip to content
Snippets Groups Projects
Select Git revision
  • 379098f0e172c4aa9a373ac6e249b7e63a6aac52
  • master default
  • dependabot/nuget/source/Sample/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/MasterDevs.ChromeDevTools.Tests/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ProtocolGenerator/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/System.Net.Http-4.3.4
  • revert-29-revert-24-protocol_62
  • revert-24-protocol_62
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0.40915
13 results

CaptureScreenshotCommand.cs

Blame
  • ControlOptionsM_Keyboard_mobile.cs 1.97 KiB
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.UI; //andr
    using UnityEngine.SceneManagement;
    using System.IO; //
    using UnityEngine.Video;//streaming
    using UnityEngine.Networking;
    
    using static UIconfig;
    using static StreamingAssetLoader;
    
    
    public class ControlOptionsM_Keyboard_mobile : MonoBehaviour
    {
    
        public GameObject MCiW_ButtonT;
        public GameObject MCiW_ButtonUT;
    
    
    
        /*
        public GameObject TAV_Slider;
        public GameObject TAvisibilityT;
        */
    
        private Color colChangeable = new Color(1f, 1f, 1f, 0.5f);
        private Color colChangeable2 = new Color(1f, 1f, 1f, 0.5f);
    
        //public GameObject TouchModeButton;
    
    
        //public GameObject back_GObj;
    
        void Start()
        {
            UpdateUI_6();
            
        }
    
        private void Update()
        {
            UpdateUI_6();
        }
    
        void UpdateUI_6()
        {
            switch (UIconfig.MouseKeepingInWindow)
            {
                case true:
    
                    MCiW_ButtonT.GetComponent<Text>().text = "Mouse is hold in Window";
                    MCiW_ButtonUT.GetComponent<Text>().text = "Press to change Mode ";
                    Cursor.lockState = CursorLockMode.Confined;
                    break;
    
                case false:
    
                    MCiW_ButtonT.GetComponent<Text>().text = "Mouse can leave Window";
                    MCiW_ButtonUT.GetComponent<Text>().text = "Press to change Mode";
                    Cursor.lockState = CursorLockMode.None;
                    break;
    
            }
    
    
        }
    
        public void ChangeMouseCaptureInWindow()
        {
            switch (UIconfig.MouseKeepingInWindow)
            {
                case false:
                    UIconfig.MouseKeepingInWindow = true;
                    Cursor.lockState = CursorLockMode.Confined;
                    break;
    
    
    
                case true:
                    UIconfig.MouseKeepingInWindow = false;
                    Cursor.lockState = CursorLockMode.None;
                    break;
    
            }
            
            //updateUIpreview();
            NetworkJSON_Save();
        }
    
        
    }