void Awake() { mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>(); mCloudRecoBehaviour.RegisterOnInitializedEventHandler(OnInitialized); mCloudRecoBehaviour.RegisterOnInitErrorEventHandler(OnInitError); mCloudRecoBehaviour.RegisterOnUpdateErrorEventHandler(OnUpdateError); mCloudRecoBehaviour.RegisterOnStateChangedEventHandler(OnStateChanged); mCloudRecoBehaviour.RegisterOnNewSearchResultEventHandler(OnNewSearchResult); }
/// <summary> /// Register for events at the CloudRecoBehaviour /// </summary> void Start() { // Register this event handler at the CloudRecoBehaviour m_CloudRecoBehaviour = GetComponent <CloudRecoBehaviour>(); if (m_CloudRecoBehaviour) { m_CloudRecoBehaviour.RegisterOnInitializedEventHandler(OnInitialized); m_CloudRecoBehaviour.RegisterOnNewSearchResultEventHandler(OnNewSearchResult); m_CloudRecoBehaviour.RegisterOnStateChangedEventHandler(OnStateChanged); } if (m_CloudActivityIcon) { m_CloudActivityIcon.enabled = false; } }
void Start() { if (m_MyEvent == null) { m_MyEvent = new UnityEvent(); } //hide vimeo screen hideVimScreenWhenVimIsNotReady(); // register this event handler at the cloud reco behaviour -vuforia stuff mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>(); mCloudRecoBehaviour.RegisterOnInitializedEventHandler(OnInitialized); mCloudRecoBehaviour.RegisterOnInitErrorEventHandler(OnInitError); mCloudRecoBehaviour.RegisterOnUpdateErrorEventHandler(OnUpdateError); mCloudRecoBehaviour.RegisterOnStateChangedEventHandler(OnStateChanged); mCloudRecoBehaviour.RegisterOnNewSearchResultEventHandler(OnNewSearchResult); }