// Awake
        void Awake()
        {
            CheckUIEventSystem();

            m_Instance = this;
            SetActive(true);
            InitControllers();
            Array.ForEach(m_AllControllers, c => c.OnAwake());
        }
Esempio n. 2
0
        // Awake
        void Awake()
        {
            if (FindObjectOfType <EventSystem>() == null)
            {
                new GameObject("EventSystem", typeof(EventSystem), typeof(StandaloneInputModule));
            }

            instance = this;
            SetActive(true);
        }
Esempio n. 3
0
 // Awake
 void Awake()
 {
     instance = this;
     SetActive(true);
 }
 // OnReset
 static void OnReset()
 {
     m_Inited   = false;
     m_Instance = null;
 }
Esempio n. 5
0
 // Awake
 void Awake()
 {
     instance = this;
     SetActive( true );
 }