public void Load(SceneInfo info, SceneOptions options = null) { if (info == null) { return; } var data = GetData(info, options); data.Load = true; var index = _queue.Count; if (options != null && options.UseLoadingScreen && _loadingScreen != null) { var loading = new SceneData() { Info = _loadingScreen, Load = true, IsLoadingScreen = true, }; } _queue.Add(data); }
private SceneData GetData(SceneInfo info, SceneOptions options) { var data = new SceneData() { Info = info, Options = options, }; return(data); }
public void Unload(SceneInfo info, SceneOptions options = null) { if (info == null) { return; } var data = GetData(info, options); data.Load = false; _queue.Add(data); }