void OnFind(VoidAREvent evt) { if (mDuration == 0) { PlayVideo(videoSource); } }
void OnReady(VoidAREvent evt) { rawImage.texture = vPlayer.texture; rawImage.enabled = true; playButton.transform.parent.gameObject.SetActive(true); playButton.GetComponent <Image>().sprite = pauseImage; rawImage.GetComponent <AspectRatioFitter>().aspectRatio = (float)vPlayer.videoWidth / vPlayer.videoHeight; mDuration = (int)vPlayer.duration; durationText.text = GetTime(mDuration); }
void OnFind(VoidAREvent evt) { Debug.Log(" ImageTargetBehaviour OnFind Event target:" + evt.currentTarget + " data = " + evt.data + " type = " + evt.name); if (picture == null) { return; } picture.color = new Color(1, 1, 1, 0); picture.DOFade(FadeToAlpha, FadeDuration); }
void onComplete(VoidAREvent evt) { Debug.Log("Record onComplete:" + evt.data); }
void OnReady(VoidAREvent evt) { GetComponent <MeshRenderer>().enabled = true; }
void OnEnd(VoidAREvent evt) { Application.LoadLevel(1); }
private void OnVideoReady(VoidAREvent evt) { videoLoadObj.SetActive(false); }
void OnError(VoidAREvent evt) { // int errorCode = (int)evt.data; // Debug.LogError("cloud error :" + errorCode); }
void OnDownload(VoidAREvent evt) { int progress = (int)evt.data; //下载进度值0-100 // Debug.Log("OnDownload progress :" + progress); }
void OnComplete(VoidAREvent evt) { //GameObject target = evt.data as GameObject; //Debug.Log("OnComplete target :" + target.name); }
void OnComplete(VoidAREvent evt) { playButton.GetComponent <Image>().sprite = playImage; }
void OnEnd(VoidAREvent evt) { }
void OnReady(VoidAREvent evt) { OnPrepared(); }
void OnEnd(VoidAREvent evt) { SceneManager.LoadScene(1); }