AppStorePlayFab - creobitcom/Creobit.Backend GitHub Wiki
Модуль для работы с PlayFab посредством AppStore.
Установка
- Выполнить шаги для установки Creobit.Backend.PlayFab;
- Выполнить шаги для установки UnityIAP;
- Добавить директиву препроцессора CREOBIT_BACKEND_APPSTORE.
Инициализация
var playFabStore = new PlayFabStore(catalogVersion: null, storeId: null)
{
CurrencyMap = new List<(string CurrencyId, string VirtualCurrency)>
{
( "Money", "RM" ),
( "Coins", "CC" )
},
ProductMap = new List<(string ProductId, string ItemId)>
{
("AppBox", "PlayFabBox"),
("AppKey", "PlayFabKey")
}
};
var appStorePlayFabStore = new AppStorePlayFabStore(playFabStore)
{
ProductMap = new List<(string ProductId, ProductType ProductType)>
{
("AppBox", ProductType.Consumable),
("AppKey", ProductType.Consumable)
}
};