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