public override void Load(AssetReference assetReference, LoadSceneMode mode)
        {
            SceneWrapper map = SceneWrapperFactory.Create();

            map.GUID = assetReference.AssetGUID.ToLower();
            map.Load(assetReference, mode);

            m_wrappers.Add(map);
            OnMapAdded.Invoke(map);
        }
Esempio n. 2
0
 static SceneLoaderBootstrapper()
 {
     // The SceneWrapperFactory should return a SceneWrapper based on playmode state
     SceneWrapperFactory.SetCreateFunction(() =>
     {
         if (!Application.isPlaying)
         {
             return(new EditorSceneWrapper());
         }
         return(new AddressablesSceneWrapper());
     });
 }