mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-12 01:23:31 +08:00
18 lines
282 B
C#
18 lines
282 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;
|
|
}
|
|
}
|
|
}
|