Skip to content

Commit

Permalink
hide LoadResource delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguzhu committed Jul 29, 2020
1 parent ccf1db8 commit 03f43d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/UI/UIPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03f43d6

Please sign in to comment.