Esempio n. 1
0
 public void OnTrackingLost(Vuforia.MyArDemoTrackableHandler theHandler)
 {
     if (activeArTargetHandler == theHandler)
     {
         this.SetActiveArTarget(null);
     }
 }
Esempio n. 2
0
    public void SetActiveArTarget(Vuforia.MyArDemoTrackableHandler theHandler)
    {
        if (theHandler == null)
        {
            activeArTarget        = null;
            activeArTargetHandler = null;
            ShowUI(false);
            return;
        }

        if (theHandler != null)
        {
            activeArTargetHandler = theHandler;
            activeArTarget        = theHandler.gameObject;
            ShowUI(true);
        }
    }
Esempio n. 3
0
    private void SetActiveArTarget(Vuforia.MyArDemoTrackableHandler theHandler)
    {
        if (theHandler == null)
        {
            activeArTarget        = null;
            activeArTargetHandler = null;
            ShowUI(false);
            return;
        }

        if (theHandler != null)
        {
            activeArTargetHandler = theHandler;
            activeArTarget        = theHandler.gameObject;
            ShowUI();
            ShowButtons(theHandler.name == "xueguan");
        }
    }
Esempio n. 4
0
 public void OnTrackingFound(Vuforia.MyArDemoTrackableHandler theHandler)
 {
     this.SetActiveArTarget(theHandler);
 }