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;
        }
예제 #2
0
        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;
        }
예제 #3
0
    [SerializeField] public SelectItem_Info SelectItem = default;  //選択アイテム

    // Start is called before the first frame update
    void Start()
    {
        playfabstore = GameObject.Find("PlayFabStore").GetComponent <PlayFabStore>();
    }