void IUIManLoader.LoadObject(string key, Action <string, UnityObject> onLoaded) { AddressablesManager.LoadAsset(key, onLoaded); }
void IUIManLoader.LoadTexture2D(string key, Action <string, UnityObject> onLoaded) { AddressablesManager.LoadAsset <Texture2D>(key, onLoaded); }
void IUIManLoader.LoadSpriteAtlas(string key, Action <string, UnityObject> onLoaded) { AddressablesManager.LoadAsset <SpriteAtlas>(key, onLoaded); }
private void LoadSpriteAtlas(string key, Action <SpriteAtlas> onSucceeded) { AddressablesManager.LoadAsset <SpriteAtlas>(key, (_, atlas) => onSucceeded?.Invoke(atlas)); }