Esempio n. 1
0
        public static void PrepareKernel(SceneStarter mainStarter)
        {
            if (_kernel != null)
            {
                throw new Exception("Kernel has already created. You can have only one Kernel per Domain");
            }
            _kernel = new SceneKernel();
            _kernel.CreateBuilder();

            _mainStarter = mainStarter;
        }
Esempio n. 2
0
        public static void Initialize()
        {
            _sceneDependsOn           = new Queue <string>();
            _scenesDependsOnAvailable = new HashSet <string>();
            _sceneRegisteredSetups    = new Queue <SceneSetup>();
            _scenePostBuildSetups     = new Queue <SceneSetup>();

            _mainStarter = null;
            _kernel      = null;
            _coroutine   = null;
        }
Esempio n. 3
0
 public void Prepare(SceneKernel kernel)
 {
     _kernel = kernel;
 }