void Start() { // setup BookInformationParser mBookInformationParser = new BookInformationParser(); mBookInformationParser.SetBookObject(AugmentationObject); TrackableBehaviour trackableBehaviour = AugmentationObject.transform.parent.GetComponent <TrackableBehaviour>(); if (trackableBehaviour) { trackableBehaviour.RegisterTrackableEventHandler(this); } mCloudRecoBehaviour = (CloudRecoBehaviour)FindObjectOfType(typeof(CloudRecoBehaviour)); mUISkin = Resources.Load("UserInterface/ButtonSkins") as GUISkin; mButtonGUIStyles = new Dictionary <string, GUIStyle>(); foreach (GUIStyle customStyle in mUISkin.customStyles) { mButtonGUIStyles.Add(customStyle.name, customStyle); } HideObject(); }
void Start() { // setup BookInformationParser mBookInformationParser = new BookInformationParser(); mBookInformationParser.SetBookObject(AugmentationObject); mTrackableBehaviour = AugmentationObject.transform.parent.GetComponent <TrackableBehaviour>(); if (mTrackableBehaviour) { mTrackableBehaviour.RegisterTrackableEventHandler(this); } mCloudRecoBehaviour = FindObjectOfType <CloudRecoBehaviour>(); HideObject(); SetCancelButtonVisible(false); }
/// <summary> /// register for events at the CloudRecoBehaviour /// </summary> void Start() { mBookInformationParser = new BookInformationParser(); //mBookInformationParser.SetBookObject(AugmentationObject); // look up the gameobject containing the ImageTargetTemplate: mParentOfImageTargetTemplate = ImageTargetTemplate.gameObject; // intialize the ErrorMsg class ErrorMsg.Init(); // register this event handler at the cloud reco behaviour CloudRecoBehaviour cloudRecoBehaviour = GetComponent <CloudRecoBehaviour>(); if (cloudRecoBehaviour) { cloudRecoBehaviour.RegisterEventHandler(this); } }
void Start() { // setup BookInformationParser mBookInformationParser = new BookInformationParser(); mBookInformationParser.SetBookObject(AugmentationObject); // Sets book object as gameobject that holds the content // mBookInformationParser.SetGuideshopObject(AugmentationObject); // Sets guideshop object as gameobject that holds the content // Checks is parent of Augmentable object has trackable behaviour TrackableBehaviour trackableBehaviour = AugmentationObject.transform.parent.GetComponent <TrackableBehaviour>(); if (trackableBehaviour) { trackableBehaviour.RegisterTrackableEventHandler(this); } mCloudRecoBehaviour = FindObjectOfType <CloudRecoBehaviour>(); HideObject(); SetCancelButtonVisible(false); }
void Start() { // setup BookInformationParser mBookInformationParser = new BookInformationParser(); mBookInformationParser.SetBookObject(AugmentationObject); TrackableBehaviour trackableBehaviour = AugmentationObject.transform.parent.GetComponent<TrackableBehaviour>(); if (trackableBehaviour) { trackableBehaviour.RegisterTrackableEventHandler(this); } mCloudRecoBehaviour = (CloudRecoBehaviour)FindObjectOfType(typeof(CloudRecoBehaviour)); mUISkin = Resources.Load("UserInterface/ButtonSkins") as GUISkin; mButtonGUIStyles = new Dictionary<string,GUIStyle>(); foreach (GUIStyle customStyle in mUISkin.customStyles) mButtonGUIStyles.Add(customStyle.name, customStyle); HideObject(); }
/// <summary> /// register for events at the CloudRecoBehaviour /// </summary> void Start() { mBookInformationParser = new BookInformationParser(); //mBookInformationParser.SetBookObject(AugmentationObject); // look up the gameobject containing the ImageTargetTemplate: mParentOfImageTargetTemplate = ImageTargetTemplate.gameObject; // intialize the ErrorMsg class ErrorMsg.Init(); // register this event handler at the cloud reco behaviour CloudRecoBehaviour cloudRecoBehaviour = GetComponent<CloudRecoBehaviour>(); if (cloudRecoBehaviour) { cloudRecoBehaviour.RegisterEventHandler(this); } }