少年修仙传客户端代码仓库
client_linchunjie
2018-09-14 a0ede150686a218c92b901b1f20aef12a9913890
Core/ResModule/UILoader.cs
@@ -37,7 +37,7 @@
        if (window == null)
        {
            DesignDebug.LogErrorFormat("UILoader.LoadWindow() => 加载不到资源: {0}.", _name);
            DebugEx.LogErrorFormat("UILoader.LoadWindow() => 加载不到资源: {0}.", _name);
        }
        return window;
@@ -107,7 +107,7 @@
        if (prefab == null)
        {
            DesignDebug.LogErrorFormat("UILoader.LoadPrefab() => 加载不到资源: {0}.", _name);
            DebugEx.LogErrorFormat("UILoader.LoadPrefab() => 加载不到资源: {0}.", _name);
        }
        return prefab;
@@ -123,7 +123,7 @@
    public static Sprite LoadSprite(string _iconKey)
    {
        var iconConfig = ConfigManager.Instance.GetTemplate<IconConfig>(_iconKey);
        var iconConfig = Config.Instance.Get<IconConfig>(_iconKey);
        if (iconConfig == null)
        {
            return null;
@@ -161,7 +161,7 @@
        if (sprite == null)
        {
            DesignDebug.LogErrorFormat("UILoader.LoadSprite() => 加载不到资源: {0}.", file);
            DebugEx.LogErrorFormat("UILoader.LoadSprite() => 加载不到资源: {0}.", file);
        }
        return sprite;
@@ -171,7 +171,7 @@
    {
        if (!AssetSource.uiFromEditor)
        {
            var iconConfig = ConfigManager.Instance.GetTemplate<IconConfig>(_iconKey);
            var iconConfig = Config.Instance.Get<IconConfig>(_iconKey);
            if (iconConfig != null)
            {
                var bundleName = StringUtility.Contact("ui/sprite/", iconConfig.folder.ToLower());
@@ -200,7 +200,7 @@
        if (font == null)
        {
            DesignDebug.LogErrorFormat("UILoader.LoadFont() => 加载不到资源: {0}.", _fontName);
            DebugEx.LogErrorFormat("UILoader.LoadFont() => 加载不到资源: {0}.", _fontName);
        }
        return font;