From 03f43d6f8eb9bf3d158c4159307625c462a53987 Mon Sep 17 00:00:00 2001 From: "guzhu@fairygui.com" Date: Wed, 29 Jul 2020 17:33:48 +0800 Subject: [PATCH] hide LoadResource delegate --- Assets/Scripts/UI/UIPackage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/UI/UIPackage.cs b/Assets/Scripts/UI/UIPackage.cs index e348e045..712577ea 100644 --- a/Assets/Scripts/UI/UIPackage.cs +++ b/Assets/Scripts/UI/UIPackage.cs @@ -91,14 +91,14 @@ class AtlasSprite public const string URL_PREFIX = "ui://"; #if UNITY_EDITOR - public static LoadResource _loadFromAssetsPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) => + static LoadResource _loadFromAssetsPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) => { destroyMethod = DestroyMethod.Unload; return AssetDatabase.LoadAssetAtPath(name + extension, type); }; #endif - public static LoadResource _loadFromResourcesPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) => + static LoadResource _loadFromResourcesPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) => { destroyMethod = DestroyMethod.Unload; return Resources.Load(name, type);