Пример #1
0
        public override void Enter()
        {
            base.Enter();


            //여기서 사운드가 재생되어야됨.
            //SoundManager.instance.PreEnter();

            CoManager.Start(this, CoIntro());
        }
Пример #2
0
 void InitManagers()
 {
     if (null == managers || managers.Length == 0)
     {
         SetManagers();
     }
     for (int i = 0; i < managers.Length; i++)
     {
         managers[i].Init();
     }
     CoManager.Init(_mainMono);
 }
Пример #3
0
        static IEnumerator CoUnLoad()
        {
            CoManager.UnloadCo();
            System.GC.Collect();
            AsyncOperation ao = SceneManager.UnloadSceneAsync(_curScene._sceneName);

            ao.allowSceneActivation = false;
            while (true)
            {
                _sceneLoadingProgress += _sceneLoadingProgress - (ao.progress / 0.9f * 0.5f);
                if (0.9f <= ao.progress)
                {
                    break;
                }
                yield return(null);
            }
            ao.allowSceneActivation = true;
            while (!ao.isDone)
            {
                yield return(null);
            }
        }
 void Release()
 {
     _owner = null;
     _enumerators.Clear();
     CoManager.Release(this);
 }