public void UnloadPersistentMap(MapIDs map) { if (SceneManager.GetSceneByName(map.ToString()).isLoaded) { SceneManager.UnloadSceneAsync(map.ToString()); } }
public void LoadPersistentMap(MapIDs map) { SceneManager.LoadScene(map.ToString(), LoadSceneMode.Additive); }