feat: support asset bundle
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace OCES
|
||||
{
|
||||
public class ResourcesAssetProvider : IAssetProvider
|
||||
{
|
||||
public T Load<T>(string path) where T : UnityEngine.Object
|
||||
{
|
||||
return Resources.Load<T>(path);
|
||||
}
|
||||
public ResourceRequest LoadAsync<T>(string path) where T : UnityEngine.Object
|
||||
{
|
||||
return Resources.LoadAsync<T>(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user