public override void Bind() { this.View.mCloseButton.TappedOn += OnTappedOnCloseButton; this.View.mButtonTwo.TappedOn += OnTappedOnButtonTwo; this.View.mButtonFour.TappedOn += OnTappedOnButtonFour; this.View.mButtonThree.TappedOn += OnTappedOnButtonThree; this.View.mButtonOne.TappedOn += OnTappedOnButtonOne; this.View.mAboutButton.TappedOn += OnTappedOnAboutButton; // register Vuforia started callback VuforiaAbstractBehaviour vuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour)); if (vuforiaBehaviour) { vuforiaBehaviour.RegisterVuforiaStartedCallback(EnableContinuousAutoFocus); vuforiaBehaviour.RegisterOnPauseCallback(OnPause); } // Find the Wood image target. mAResume = GameObject.Find("AResume").GetComponent <ImageTargetBehaviour>(); // Add a mesh for each virtual button on the Wood target. VirtualButtonBehaviour[] vbs = mAResume.gameObject.GetComponentsInChildren <VirtualButtonBehaviour>(); foreach (VirtualButtonBehaviour vb in vbs) { CreateVBMesh(vb); // Also store the position and scale for later. mVBPositionDict.Add(vb.VirtualButtonName, vb.transform.localPosition); mVBScaleDict.Add(vb.VirtualButtonName, vb.transform.localScale); } }
void Start() { VuforiaAbstractBehaviour vuforia = FindObjectOfType <VuforiaAbstractBehaviour>(); vuforia.RegisterVuforiaStartedCallback(OnVuforiaStarted); vuforia.RegisterOnPauseCallback(OnPaused); }
public override void Bind() { this.View.mCloseButton.TappedOn += OnTappedOnCloseButton; this.View.mVirtualGreenButton.TappedOn += OnTappedOnGreenButton; this.View.mVirtualYellowButton.TappedOn += OnTappedOnYellowButton; this.View.mVirtualRedButton.TappedOn += OnTappedOnRedButton; this.View.mVirtualBlueButton.TappedOn += OnTappedOnBlueButton; this.View.mAboutButton.TappedOn += OnTappedOnAboutButton; // register Vuforia started callback VuforiaAbstractBehaviour vuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour)); if (vuforiaBehaviour) { vuforiaBehaviour.RegisterVuforiaStartedCallback(EnableContinuousAutoFocus); vuforiaBehaviour.RegisterOnPauseCallback(OnPause); } // Find the Wood image target. //mImageTargetWood = GameObject.Find("ImageTargetWood").GetComponent<ImageTargetBehaviour>(); // Add a mesh for each virtual button on the Wood target. //VirtualButtonBehaviour[] vbs = // mImageTargetWood.gameObject.GetComponentsInChildren<VirtualButtonBehaviour>(); //foreach (VirtualButtonBehaviour vb in vbs) //{ // CreateVBMesh(vb); // Also store the position and scale for later. // mVBPositionDict.Add(vb.VirtualButtonName, vb.transform.localPosition); // mVBScaleDict.Add(vb.VirtualButtonName, vb.transform.localScale); //} }
void Start() { VuforiaAbstractBehaviour vuforia = FindObjectOfType <VuforiaAbstractBehaviour>(); vuforia.RegisterVuforiaStartedCallback(OnVuforiaStarted); vuforia.RegisterOnPauseCallback(OnPaused); ///////// mDTEH = FindObjectOfType <DefaultTrackableEventHandler>(); //mActiveStrategy = SceneSwicher.st; //////// }
public override void Bind() { this.View.mCloseButton.TappedOn += OnTappedOnCloseButton; this.View.mAboutLabel.TappedOn += OnTappedOnAboutButton; // register Vuforia started callback VuforiaAbstractBehaviour vuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour)); if (vuforiaBehaviour) { vuforiaBehaviour.RegisterVuforiaStartedCallback(EnableContinuousAutoFocus); vuforiaBehaviour.RegisterOnPauseCallback(OnPause); } }
public override void Bind() { this.View.mExtendedTracking.TappedOn += OnTappedToTurnOnTraking; this.View.mCameraFlashSettings.TappedOn += OnTappedToTurnOnFlash; this.View.mAutoFocusSetting.TappedOn += OnTappedToTurnOnAutoFocus; this.View.mCameraFacing.TappedOnOption += OnTappedToTurnCameraFacing; this.View.mDataSet.TappedOnOption += OnTappedOnDataSet; this.View.mCloseButton.TappedOn += OnTappedOnCloseButton; this.View.mAboutLabel.TappedOn += OnTappedOnAboutButton; // register Vuforia started callback VuforiaAbstractBehaviour VuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour)); if (VuforiaBehaviour) { VuforiaBehaviour.RegisterVuforiaStartedCallback(EnableContinuousAutoFocus); VuforiaBehaviour.RegisterOnPauseCallback(OnPause); } }