Пример #1
0
        /// <summary>Load scenes one by one</summary>
        public void LoadScenes(Scenes[] _scenes, LoadSceneMode _mode = LoadSceneMode.Additive, Action _onDone = null)
        {
            Action onLoadBegin = () =>
            {
                Action onLoadEnd = () => { OnDone(); _onDone?.Invoke(); };

                SceneTools.LoadScenesAsync(_scenes, _mode, OnProgress, onLoadEnd);
            };

            m_LoadUI.Show(onLoadBegin);
        }