private void OnFailWrapper(Asset_WithPoolableContainer loadedAsset, Action OnFail) { #if UNITY_EDITOR loadFinishTime = Time.realtimeSinceStartup; #endif OnFail?.Invoke(); ClearEvents(); }
private void OnSuccessWrapper(Asset_WithPoolableContainer loadedAsset, Action <GameObject> OnSuccess) { #if UNITY_EDITOR loadFinishTime = Time.realtimeSinceStartup; #endif if (VERBOSE) { if (gltfPromise != null) { Debug.Log($"GLTF Load(): target URL -> {gltfPromise.GetId()}. Success!"); } else { Debug.Log($"AB Load(): target URL -> {abPromise.hash}. Success!"); } } this.loadedAsset = loadedAsset.container; OnSuccess?.Invoke(loadedAsset.container); ClearEvents(); }