-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# ChangeLog | ||
|
||
## 3.5.0 | ||
|
||
### Optimization and fixed bugs | ||
- 支持性更新 | ||
|
||
### Dependencies | ||
- TapTap.Common v3.5.0 | ||
|
||
## 3.4.0 | ||
|
||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.4.0 | ||
|
||
## 3.3.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.3.0 | ||
|
||
## 3.2.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.2.0 | ||
|
||
## 3.1.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.1.0 | ||
|
||
## 3.0.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.0.0 | ||
|
||
## 2.1.7 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.7 | ||
|
||
## 2.1.6 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.6 | ||
|
||
## 2.1.5 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.5 | ||
|
||
## 2.1.4 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.4 | ||
|
||
## 2.1.3 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.3 | ||
|
||
## 2.1.2 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.2 | ||
|
||
## v2.1.1 | ||
|
||
### Feature | ||
|
||
* 新增 DLC 购买认证服务 | ||
|
||
### Dependencies | ||
|
||
* TapTap.Common v2.1.1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# TapTap.License | ||
|
||
## 使用前提 | ||
|
||
使用TapTap.License的前提是必须添加以下依赖库: | ||
|
||
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git) | ||
|
||
## 接口描述 | ||
|
||
### 命名空间 | ||
|
||
```c# | ||
using TapTap.License; | ||
``` | ||
|
||
### 付费认证 | ||
|
||
#### 1.设置授权回调 | ||
|
||
```c# | ||
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码 | ||
TapLicense.SetLicencesCallback(ITapLicenseCallback callback); | ||
|
||
public interface ITapLicenseCallback | ||
{ | ||
// 授权成功回调 | ||
void OnLicenseSuccess(); | ||
} | ||
``` | ||
|
||
#### 2. 检查付费授权 | ||
|
||
```c# | ||
TapLicense.Check(); | ||
``` | ||
|
||
### TapLicense DLC 查询和购买 | ||
|
||
#### 1.DLC 回调设置 | ||
|
||
```c# | ||
public interface ITapDLCCallback | ||
{ | ||
void OnQueryCallBack(int code, Dictionary<string, object> queryList); | ||
|
||
void OnOrderCallBack(string sku, int status); | ||
} | ||
|
||
TapLicense.SetDLCCallback(ITapDLCCallback callback); | ||
``` | ||
|
||
#### 2. DLC 查询 | ||
|
||
购买前必须先查询 DLC 当前状态(支持单个查询和多个查询) | ||
|
||
```c# | ||
TapLicense.QueryDLC(string[] appId); | ||
``` | ||
|
||
#### 3.DLC 购买 | ||
|
||
当 DLC 查询过且未购买时 | ||
|
||
```c# | ||
TapLicense.PurchaseDLC(string appId); | ||
``` | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# [TapTap.License](./Documentation/README.md) | ||
|
||
## 使用前提 | ||
|
||
使用TapTap.License的前提是必须添加以下依赖库: | ||
|
||
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git) | ||
|
||
## 接口描述 | ||
|
||
### 命名空间 | ||
|
||
```c# | ||
using TapTap.License; | ||
``` | ||
|
||
### 付费认证 | ||
|
||
#### 1.设置授权回调 | ||
|
||
```c# | ||
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码 | ||
TapLicense.SetLicencesCallback(ITapLicenseCallback callback); | ||
|
||
public interface ITapLicenseCallback | ||
{ | ||
// 授权成功回调 | ||
void OnLicenseSuccess(); | ||
} | ||
``` | ||
|
||
#### 2. 检查付费授权 | ||
|
||
```c# | ||
TapLicense.Check(); | ||
``` | ||
|
||
### TapLicense DLC 查询和购买 | ||
|
||
#### 1.DLC 回调设置 | ||
|
||
```c# | ||
public interface ITapDLCCallback | ||
{ | ||
void OnQueryCallBack(int code, Dictionary<string, object> queryList); | ||
|
||
void OnOrderCallBack(string sku, int status); | ||
} | ||
|
||
TapLicense.SetDLCCallback(ITapDLCCallback callback); | ||
``` | ||
|
||
#### 2. DLC 查询 | ||
|
||
购买前必须先查询 DLC 当前状态(支持单个查询和多个查询) | ||
|
||
```c# | ||
TapLicense.QueryDLC(string[] appId); | ||
``` | ||
|
||
#### 3.DLC 购买 | ||
|
||
当 DLC 查询过且未购买时 | ||
|
||
```c# | ||
TapLicense.PurchaseDLC(string appId); | ||
``` | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Dependencies | ||
|
||
- TapTap.Common v3.5.0 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "com.taptap.tds.dlc", | ||
"displayName": "TapTap Download Content", | ||
"description": "TapTap Develop Service", | ||
"version": "3.5.0", | ||
"unity": "2018.3", | ||
"license": "MIT", | ||
"dependencies": { | ||
"com.taptap.tds.common": "https://github.com/TapTap/TapCommon-Unity.git#3.5.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.