コード例 #1
0
ファイル: StartGame.cs プロジェクト: grashaar/uiman-examples
 void IUIManLoader.LoadObject(string key, Action <string, UnityObject> onLoaded)
 {
     AddressablesManager.LoadAsset(key, onLoaded);
 }
コード例 #2
0
ファイル: StartGame.cs プロジェクト: grashaar/uiman-examples
 void IUIManLoader.LoadTexture2D(string key, Action <string, UnityObject> onLoaded)
 {
     AddressablesManager.LoadAsset <Texture2D>(key, onLoaded);
 }
コード例 #3
0
ファイル: StartGame.cs プロジェクト: grashaar/uiman-examples
 void IUIManLoader.LoadSpriteAtlas(string key, Action <string, UnityObject> onLoaded)
 {
     AddressablesManager.LoadAsset <SpriteAtlas>(key, onLoaded);
 }
コード例 #4
0
ファイル: StartGame.cs プロジェクト: grashaar/uiman-examples
 private void LoadSpriteAtlas(string key, Action <SpriteAtlas> onSucceeded)
 {
     AddressablesManager.LoadAsset <SpriteAtlas>(key, (_, atlas) => onSucceeded?.Invoke(atlas));
 }