mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2026-08-07 01:00:11 +08:00
add XianTu
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user