using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UObject = UnityEngine.Object; public class ResourceManager : D_MonoSingleton { private Dictionary mResDic = new Dictionary(); public T LoadRes(string pPath) where T : UObject { if (!mResDic.ContainsKey(pPath)) { mResDic[pPath] = Resources.Load(pPath); } return mResDic[pPath] as T; } internal GameObject LoadResource(string v) { throw new NotImplementedException(); } }