Example #1
0
 private void Awake()
 {
     _processLoaderFinish    = false;
     _builtRequestsForLoader = null;
     _isFading       = false;
     _currentRequest = null;
     _marshaller     = new SceneMarshaller();
     _requests       = new Queue <SceneLoaderRequest>();
 }
        //=============================================================================//
        //============ Lifecycle Methods
        //=============================================================================//
        #region Lifecycle Methods

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

            _scenes = new List <SceneData>()
            {
                asSceneData
            };
            _sceneMarshaller = new SceneMarshaller();
        }
Example #3
0
        //=============================================================================//
        //============ Internal Methods
        //=============================================================================//
        #region Internal Methods

        internal static List <InternalSceneData> MarshallToInternalFormat(List <SceneData> scenesDatas)
        {
            SceneMarshaller marshaller = new SceneMarshaller();

            return(scenesDatas.ConvertAll(sceneData => marshaller.Marshall(sceneData)));
        }
 public UnloadStrategySimple(List <string> scenesName)
 {
     _scenes          = scenesName.ConvertAll(sceneName => new SceneData(sceneName));
     _sceneMarshaller = new SceneMarshaller();
 }