| | |
| | | |
| | | private string versionUrl; |
| | | |
| | | readonly static List<string> excludePngs = new List<string>() { "Launch_1.png", "Launch_2.png", "Launch_3.png", "LoginBackGround.png", "TB_DL_Logo.png" }; |
| | | |
| | | public VersionInfo versionInfo { get; private set; } |
| | | |
| | | private static LoadDllStep m_step; |
| | |
| | | { |
| | | Sprite sprite = null; |
| | | #if UNITY_EDITOR |
| | | // if (excludePngs.Contains(StringUtility.Contact(name, ".png"))) |
| | | // { |
| | | // var path = StringUtility.Contact("Assets/ResourcesOut/BuiltIn/Sprites/", name, ".png"); |
| | | // sprite = UnityEditor.AssetDatabase.LoadAssetAtPath<Sprite>(path); |
| | | // } |
| | | // else |
| | | // { |
| | | if (excludePngs.Contains(StringUtility.Contact(name, ".png"))) |
| | | { |
| | | var path = StringUtility.Contact("Assets/ResourcesOut/BuiltIn/Sprites/", name, ".png"); |
| | | sprite = UnityEditor.AssetDatabase.LoadAssetAtPath<Sprite>(path); |
| | | } |
| | | else |
| | | { |
| | | var spriteAtlas = UnityEditor.AssetDatabase.LoadAssetAtPath<SpriteAtlas>("Assets/ResourcesOut/BuiltIn/Sprites/sprites.spriteatlasv2"); |
| | | sprite = spriteAtlas.GetSprite(name); |
| | | // } |
| | | } |
| | | |
| | | #else |
| | | if (spriteBundle == null) |