public void LoadDeck(DeckData deckToLoad) { targetDeck = deckToLoad; // 加载指定标签的资源(标签类似于AB的Label Variant) // 可以用Label加载比如说:只发给AI的牌,只发给玩家的牌,等等 Addressables.LoadAssetsAsync <CardData>(targetDeck.labelsToInclude[0].labelString, null).Completed += OnResourcesRetrieved; }
public void LoadDeck(DeckData deckToLoad) { targetDeck = deckToLoad; Addressables.LoadAssets <CardData>(targetDeck.labelsToInclude[0].labelString, null).Completed += OnResourcesRetrieved; }