Esempio n. 1
0
        public void LoadScene(Scenes _scene, LoadSceneMode _mode = LoadSceneMode.Additive, Action _onDone = null)
        {
            Action onLoadBegin = () =>
            {
                Action onLoadEnd = () => { OnDone(); _onDone?.Invoke(); };

                SceneTools.LoadSceneAsync(_scene, _mode, OnProgress, onLoadEnd);
            };

            m_LoadUI.Show(onLoadBegin);
        }
Esempio n. 2
0
        protected override void Awake()
        {
            base.Awake();

            SceneTools.LoadSceneAsync(Scenes.LoadUI);
        }