如何判断用户是否使用EveryPlay
上传视频?
if (Everyplay.SharedInstance.UploadDidComplete())
{
...
这是对的吗?
#pragma strict
// JavaScript
function Start () {
Everyplay.SharedInstance.UploadDidComplete += UploadDidCompleteDelegate(int videoId);
}
function UploadDidComplete () {
// upload successful
}
答案 0 :(得分:1)
改用C#。
void Start() {
Everyplay.SharedInstance.UploadDidComplete += UploadDidComplete;
}
void Destroy() {
if(Everyplay.SharedInstance != null) {
Everyplay.SharedInstance.UploadDidComplete -= UploadDidComplete;
}
}
private void UploadDidComplete(int videoId) {
// Upload did complete
}