Skip to content

Commit 03f43d6

Browse files
committed
hide LoadResource delegate
1 parent ccf1db8 commit 03f43d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Scripts/UI/UIPackage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ class AtlasSprite
9191
public const string URL_PREFIX = "ui://";
9292

9393
#if UNITY_EDITOR
94-
public static LoadResource _loadFromAssetsPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) =>
94+
static LoadResource _loadFromAssetsPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) =>
9595
{
9696
destroyMethod = DestroyMethod.Unload;
9797
return AssetDatabase.LoadAssetAtPath(name + extension, type);
9898
};
9999
#endif
100100

101-
public static LoadResource _loadFromResourcesPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) =>
101+
static LoadResource _loadFromResourcesPath = (string name, string extension, System.Type type, out DestroyMethod destroyMethod) =>
102102
{
103103
destroyMethod = DestroyMethod.Unload;
104104
return Resources.Load(name, type);

0 commit comments

Comments
 (0)