private void OnCardPrefabLoaded(string cardID, CardDef cardDef, object callbackData) { if (cardDef == null) { Debug.LogError(string.Format("CollectionCardCache.OnCardPrefabLoaded() - asset for card {0} has no CardDef!", cardID)); } else { this.AddCard(cardID, cardDef); CallbackData data = (CallbackData)callbackData; data.callback(cardID, cardDef, data.callbackData); } }