30 lines
798 B
C#
30 lines
798 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// Compatibilidade temporária para scripts externos que ainda chamem AddressableResources.Load.
|
|
/// Recursos comuns continuam locais em Resources. Jogos devem usar AddressableGameDownloader.
|
|
/// </summary>
|
|
public static class AddressableResources
|
|
{
|
|
public static T Load<T>(string address) where T : UnityEngine.Object
|
|
{
|
|
return Resources.Load<T>(address);
|
|
}
|
|
|
|
public static UnityEngine.Object Load(string address)
|
|
{
|
|
return Resources.Load(address);
|
|
}
|
|
|
|
public static UnityEngine.Object Load(string address, Type type)
|
|
{
|
|
return Resources.Load(address, type);
|
|
}
|
|
|
|
public static UnityEngine.Object[] LoadAll(string path, Type type)
|
|
{
|
|
return Resources.LoadAll(path, type);
|
|
}
|
|
}
|