示例#1
0
        private void Start()
        {
            if (_isBusy)
            {
                return;
            }

            _isBusy = true;
            InputTools.DisableAllInput();

            StartFadingCoroutines(FadingType.FadeIn);
            WaitForFadingCoroutinesFinish(AfterFinish);

            void AfterFinish()
            {
                InputTools.EnableAllInput();
                _isBusy = false;
                SceneOpened?.Invoke();
            }
        }
 private static void HandleSceneOpened(Scene scene, OpenSceneMode mode) => SceneOpened?.Invoke(scene, mode);