Esempio n. 1
0
 public static void LoadSprite(this ResourceComponent resourceComponent, string assetName,
                               LoadAssetCallbacks loadAssetCallbacks, object userdata)
 {
     resourceComponent.LoadAsset(AssetUtility.GetUISpritAsset(assetName), typeof(Sprite), loadAssetCallbacks,
                                 userdata);
 }
Esempio n. 2
0
 public static void LoadPrefab(this ResourceComponent resourceComponent, string assetName,
                               LoadAssetCallbacks loadAssetCallbacks, object userdata)
 {
     resourceComponent.LoadAsset(AssetUtility.GetUIItemAsset(assetName), typeof(GameObject), loadAssetCallbacks,
                                 userdata);
 }