Exemple #1
0
        public void OnAcquireItem(
            string itemModelName,
            int count
            )
        {
            if (string.IsNullOrEmpty(_unitSetting.identifierAcquireUnitClientId) ||
                string.IsNullOrEmpty(_unitSetting.identifierAcquireUnitClientSecret))
            {
                Debug.LogError("インストーラーの設定でデバッグ機能が無効化されています");
            }

            StartCoroutine(
                InventoryController.Acquire(
                    _session,
                    _unitSetting.identifierAcquireUnitClientId,
                    _unitSetting.identifierAcquireUnitClientSecret,
                    _unitSetting.inventoryNamespaceName,
                    _unitSetting.inventoryModelName,
                    itemModelName,
                    count,
                    _unitSetting.onAcquire,
                    _unitSetting.onError
                    )
                );
        }
Exemple #2
0
        public void OnClickAcquireButton(int acquireCount)
        {
            if (string.IsNullOrEmpty(_goldSetting.identifierAcquireGoldClientId) ||
                string.IsNullOrEmpty(_goldSetting.identifierAcquireGoldClientSecret))
            {
                Debug.LogError("インストーラーの設定でデバッグ機能が無効化されています");
            }

            StartCoroutine(
                InventoryController.Acquire(
                    _session,
                    _goldSetting.identifierAcquireGoldClientId,
                    _goldSetting.identifierAcquireGoldClientSecret,
                    _goldSetting.inventoryNamespaceName,
                    _goldSetting.inventoryModelName,
                    _goldSetting.itemModelName,
                    acquireCount,
                    _goldSetting.onAcquire,
                    _goldSetting.onError
                    )
                );
        }