GSM App
1. Get Update
void GetUpdate(string lang, Action<UpdateInfo> onSuccess, Action nothingUpdateCallBack, Action<long, string> errorCallback = null)GSMApp.GetUpdate("en", (data) =>
{
string link=data.link; //Chuyển đến link update
string version=data.version; //Hiển thị version cần update
string message=data.message; //Hiển thị nội dung với message
if (data.forceUpdate == 1)
{
//Xử lý bắt buộc game phải update app.
}else if (data.forceUpdate == 0)
{
//Xử lý game có thể bỏ qua không cần update
}
},()=>{
//Xử lý vào màn hình game khi không có yêu cầu update
}, (statusCode, error) =>
{
Debug.LogError(error);
});1.1 Xử lý logic
Last updated