diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/Scripts/Managers/ResourceManager.cs | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/Scripts/Managers/ResourceManager.cs')
-rw-r--r-- | Assets/Scripts/Managers/ResourceManager.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Assets/Scripts/Managers/ResourceManager.cs b/Assets/Scripts/Managers/ResourceManager.cs deleted file mode 100644 index 974eb53a..00000000 --- a/Assets/Scripts/Managers/ResourceManager.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-#if UNITY_EDITOR
-using UnityEditor;
-#endif
-
-public partial class ResourceManager : Singleton<ResourceManager>
-{
- Dictionary<string, Object> m_CachedObject = new Dictionary<string, Object>();
-
- public T LoadAsset<T>(string path) where T : UnityEngine.Object
- {
- if(m_CachedObject.ContainsKey(path))
- {
- return m_CachedObject[path] as T;
- }
-
-#if UNITY_EDITOR
- T obj = AssetDatabase.LoadAssetAtPath<T>(path);
- m_CachedObject.Add(path, obj);
-#else
-#endif
- return obj;
- }
-
-}
|