1
0
mirror of https://github.com/soarqin/DSP_Mods_TO.git synced 2026-02-04 14:12:18 +08:00
Files
DSP_Mods_TO/XianTu/AssetsLoader/ResourceLoad.cs
2026-01-28 20:27:15 +08:00

18 lines
345 B
C#

using UnityEngine;
namespace AssetsLoader
{
public class ResourceLoad : ILoad
{
public GameObject LoadPrefab(string path)
{
return Resources.Load<GameObject>(path);
}
public string LoadText(string path)
{
return Resources.Load<TextAsset>(path).text;
}
}
}