From 2fc9585797067730f28b03b0727bf05f9deed091 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Fri, 12 May 2023 10:32:11 +0800 Subject: + worldline keepers --- .../Assets/Scripts/Managers/ResourceManager.cs | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100644 marching/Assets/Scripts/Managers/ResourceManager.cs (limited to 'marching/Assets/Scripts/Managers/ResourceManager.cs') diff --git a/marching/Assets/Scripts/Managers/ResourceManager.cs b/marching/Assets/Scripts/Managers/ResourceManager.cs deleted file mode 100644 index 4b318ca..0000000 --- a/marching/Assets/Scripts/Managers/ResourceManager.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -#if UNITY_EDITOR -using UnityEditor; -#endif -using UnityEngine; - -namespace WK -{ - - public class ResourceManager : Singleton - { - - // 资源根目录是Assets/Bundle/,后续可能会把部分资源移动到streamingAssets目录 - public const string kAssetRoot = "Assets/Bundle/"; - - public T LoadAsset(string relativePath) where T : UnityEngine.Object - { -#if UNITY_EDITOR - string path = kAssetRoot + relativePath; - T obj = AssetDatabase.LoadAssetAtPath(path, typeof(T)) as T; - return obj; -#else - return null ; -#endif - } - - - - } - -} -- cgit v1.1-26-g67d0