//=============================================================================//
        //============ Lifecycle Methods
        //=============================================================================//
        #region Lifecycle Methods

        public UnloadStrategySimple(string sceneName)
        {
            SceneData asSceneData = new SceneData(sceneName);

            _scenes = new List <SceneData>()
            {
                asSceneData
            };
            _sceneMarshaller = new SceneMarshaller();
        }
示例#2
0
        //=============================================================================//
        //============ Lifecycle Methods
        //=============================================================================//
        #region Lifecycle Methods

        public SceneDataBundle(SceneData scene)
        {
            _scenes = new List <SceneData>()
            {
                scene
            };
            _bundleIdentifier     = null;
            _bundleMainSceneNames = new List <string>()
            {
                scene.SceneName
            };
        }
        public SceneLoaderRequestLoad(SceneData scene, UnloadStrategy unloadStrategy = null, SceneLoaderProxy.SceneLoaderRequestCallback callback = null, bool forceNotSuppressible = false) :
            base(callback, forceNotSuppressible)
        {
            List <SceneData> asSceneDataList = new List <SceneData>()
            {
                scene
            };
            SceneDataBundle asBundle = new SceneDataBundle(asSceneDataList, null, new List <string>()
            {
                scene.SceneName
            });

            _bundle         = asBundle;
            _unloadStrategy = unloadStrategy ?? new UnloadStrategyNone();
        }