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

GetNodeForLocationCommandResponse.cs

Blame
  • IngameUI_OnOff_TouchControlMode.cs 1.71 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 StreamingAssetLoader;
    //using static CheckServer;
    //using static CommunicationEvents;
    using static UIconfig;
    
    
    public class IngameUI_OnOff_TouchControlMode : MonoBehaviour
    {
    
        public GameObject myself_GObj;
        public ControlMode myControlMode_ID;
        public int myTouchControlMode_ID;
        
    
    
    
    
        void Start()
        {
    
            //print("hey");
                Update();
            
        }
    
        private void Update()
        {
            if (CheckArray())
            {
                if (UIconfig.touchControlMode == myTouchControlMode_ID && UIconfig.controlMode == myControlMode_ID)
                {
                    ActivateUIC();
                }
                else
                {
                    ClearUIC();
                }
            }
        }
        
        private bool CheckArray()
        {
            /*
            if (myTouchControlMode_ID != null && myControlMode_ID != null)
            {
                return true;
    
            }
            return false;
            */
            return true;
        }
    
    
        /// <summary>
        /// Activates all Pages.
        /// </summary>
        private void ActivateUIC()
        {
    
            for (int i = 0; i < myself_GObj.transform.childCount; i++)
            {
                myself_GObj.transform.GetChild(i).gameObject.SetActive(true);
            }
        }
    
    
        /// <summary>
        /// Deactivates all Pages.
        /// </summary>
        private void ClearUIC()
        {
            
            for (int i = 0; i < myself_GObj.transform.childCount; i++)
            {
                myself_GObj.transform.GetChild(i).gameObject.SetActive(false);
            }
        }
    
        
    }