protected override void Awake() { var playFabAuth = new PlayFabAuth(_titleId); var playFabUser = new PlayFabUser(playFabAuth); var playFabWallet = new PlayFabWallet() { CurrencyMap = PlayFabWalletCurrencyMap }; var playFabInventory = new PlayFabInventory(_catalogVersion, playFabUser, playFabWallet) { ItemMap = PlayFabInventoryItemMap }; var playFabStore = new PlayFabStore(_catalogVersion, _storeId) { PriceMap = PlayFabStorePriceMap, ProductMap = PlayFabStoreProductMap }; var customPlayFabAuth = new CustomPlayFabAuth(playFabAuth, _customId); Auth = customPlayFabAuth; Inventory = playFabInventory; Store = playFabStore; User = playFabUser; Wallet = playFabWallet; }
protected override void Awake() { var playFabAuth = new PlayFabAuth(_titleId); var playFabUser = new PlayFabUser(playFabAuth); var playFabWallet = new PlayFabWallet() { CurrencyMap = PlayFabWalletCurrencyMap }; var playFabInventory = new PlayFabInventory(_catalogVersion, playFabUser, playFabWallet) { ItemMap = PlayFabInventoryItemMap }; var playFabStore = new PlayFabStore(_catalogVersion, _storeId) { PriceMap = PlayFabStorePriceMap, ProductMap = PlayFabStoreProductMap }; var googlePlayAuth = new GooglePlayAuth(); var googlePlayStore = new GooglePlayStore(_publicKey) { ProductMap = UnityStoreProductMap, SubscriptionMap = UnityStoreSubscriptionMap }; var googlePlayPlayFabAuth = new GooglePlayPlayFabAuth(playFabAuth, googlePlayAuth); var googlePlayPlayFabStore = new GooglePlayPlayFabStore(playFabStore, googlePlayStore); Auth = googlePlayPlayFabAuth; Inventory = playFabInventory; Store = googlePlayPlayFabStore; User = playFabUser; Wallet = playFabWallet; }