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); }
protected override void Awake() { base.Awake(); SceneTools.LoadSceneAsync(Scenes.LoadUI); }