コード例 #1
0
ファイル: ResourceManager.cs プロジェクト: daxingyou/client-2
    public static Font GetFont(string abPath, string assetName)
    {
        string key  = abPath + "_" + assetName;
        Font   font = null;

        myFonts.TryGetValue(key, out font);
        if (font == null && abManager != null)
        {
            font = abManager.LoadFontAsset(abPath, assetName);
            if (font != null)
            {
                myFonts.Add(key, font);
            }
        }
        return(font);
    }