1
This commit is contained in:
15
unity/Assets/Script/Tools/Utils/Resloader.cs
Normal file
15
unity/Assets/Script/Tools/Utils/Resloader.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
class Resloader
|
||||
{
|
||||
public static T Load<T>(string path) where T : UnityEngine.Object
|
||||
{
|
||||
return Resources.Load<T>(path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user