public void DestroyScene() { if (SceneAB != null) { SceneAB.Dispose(); SceneAB = null; } }
public bool LoadLevelAssetBundle(string scene, bool autoload = false) { if (LoadedLevelName == scene) { return(false); } loadLevel = scene; SceneAB = new SceneAssetBundle(scene); if (autoload) { SceneAB.LoadLevel(scene); } return(true); }
private void OnApplicationQuit() { if (m_CoroutineHelper != null) { m_CoroutineHelper.StopAllCoroutines(); } if (ResourceAssetBundle != null) { ResourceAssetBundle.Release(); ResourceAssetBundle = null; } if (SceneAssetBundle != null) { SceneAssetBundle.Release(); SceneAssetBundle = null; } }