using GameCore; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.ResourceManagement.AsyncOperations; using UnityEngine.ResourceManagement.ResourceProviders; using UnityEngine.SceneManagement; public class SceneTools { public static AsyncOperationHandle asyncOperationHandle; public static AsyncOperationHandle LoadSceneAsyncByAddressables(string key, LoadSceneMode loadMode) { return Addressables.LoadSceneAsync(key, loadMode); } public static AsyncOperationHandle UnloadSceneAsyncByAddressables(AsyncOperationHandle handle, bool autoReleaseHandle = true) { return Addressables.UnloadSceneAsync(handle, autoReleaseHandle); } }