Skip to content
Snippets Groups Projects
MenuControl_mobile.cs 910 B
Newer Older
  • Learn to ignore specific revisions
  • using UnityEngine;
    //using static StreamingAssetLoader;
    //using static CheckServer;
    //using static CommunicationEvents;
    
    
    
    Stefan Richter's avatar
    Stefan Richter committed
    public class MenuControl_mobile : MonoBehaviour
    
    {
    
    
        //public int myUI_ID;
        public GameObject myself_GObj;
        //public GameObject parent_GObj;
        //public int backUI_ID;
        //public int optionsUI_ID;
        //public int failedUI_ID;
        public GameObject child1_GObj;
    
        void Start()
        {
            toChild1();
        }
    
        private void Update()
        {
    
    MaZiFAU's avatar
    MaZiFAU committed
    
    
    Stefan Richter's avatar
    Stefan Richter committed
            //UIconfig.Andr_Start_menu_counter = 1;
    
    MaZiFAU's avatar
    MaZiFAU committed
            child1_GObj.SetActive(true);
    
    MaZiFAU's avatar
    MaZiFAU committed
    
    
        /// <summary>
        /// Deactivates all Pages.
        /// </summary>
        private void ClearUIC()
        {
    
    MaZiFAU's avatar
    MaZiFAU committed
    
    
            for (int i = 0; i < myself_GObj.transform.childCount; i++)
            {
                myself_GObj.transform.GetChild(i).gameObject.SetActive(false);
            }
        }
    
    
    }