Exemple #1
0
 void OnFind(VoidAREvent evt)
 {
     if (mDuration == 0)
     {
         PlayVideo(videoSource);
     }
 }
Exemple #2
0
 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);
 }
Exemple #3
0
    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);
    }
Exemple #4
0
 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);
 }
Exemple #7
0
 private void OnVideoReady(VoidAREvent evt)
 {
     videoLoadObj.SetActive(false);
 }
Exemple #8
0
 void OnError(VoidAREvent evt)
 {
     //   int errorCode = (int)evt.data;
     //    Debug.LogError("cloud error :" + errorCode);
 }
Exemple #9
0
 void OnDownload(VoidAREvent evt)
 {
     int progress = (int)evt.data; //下载进度值0-100
     // Debug.Log("OnDownload progress :" + progress);
 }
Exemple #10
0
 void OnComplete(VoidAREvent evt)
 {
     //GameObject target = evt.data as GameObject;
     //Debug.Log("OnComplete target :" + target.name);
 }
Exemple #11
0
 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);
 }