Ejemplo n.º 1
0
        public bool DOAwake()
        {
            if (LLSystem.isInit == false)
            {
                LLUtils.LoadScene(0);
                return(false);
            }

            foreach (var v in toActiveAtStart)
            {
                if (v != null)
                {
                    v.SetActive(true);
                }
            }

            foreach (var v in toDisableAtStart)
            {
                if (v != null)
                {
                    v.SetActive(false);
                }
            }

            settingValues.UpdateValuesByCSV(false);

            return(true);
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            if (LLSystem.instance != null)
            {
                Destroy(gameObject);
                return;
            }

            instance = this;

            DontDestroyOnLoad(gameObject);

            LLUtils.LoadScene(1);
        }