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); }
public override void Remove(SceneWrapper mapToRemove) { for (var i = 0; i < m_wrappers.Count; i++) { var map = m_wrappers[i]; if (map.GUID.Equals(mapToRemove.GUID)) { Debug.Log($"SceneCache: Guid {mapToRemove.GUID} removed from map."); m_wrappers.RemoveAt(i); OnMapRemoved.Invoke(mapToRemove); return; } } }
public override void Add(SceneWrapper map) { m_wrappers.Add(map); OnMapAdded?.Invoke(map); }
public abstract void Remove(SceneWrapper map);
// Hooks to link a scene cache up to another cache public abstract void Add(SceneWrapper map);
public override void Remove(SceneWrapper map) { m_wrappers.Remove(map); OnMapRemoved?.Invoke(map); }