protected override void OnDestroy() { VuforiaARController expr_05 = VuforiaARController.Instance; expr_05.UnregisterVuforiaInitializedCallback(new Action(this.OnVuforiaInitialized)); expr_05.UnregisterVuforiaStartedCallback(new Action(this.OnVuforiaStarted)); expr_05.UnregisterOnPauseCallback(new Action <bool>(this.OnPause)); }
protected override void OnDestroy() { if (VuforiaRenderer.Instance.VideoBackgroundTexture == this.mTexture) { VuforiaRenderer.Instance.SetVideoBackgroundTexture(null, 0); } VuforiaARController expr_29 = VuforiaARController.Instance; expr_29.UnregisterVideoBgEventHandler(this); expr_29.UnregisterVuforiaInitializedCallback(new Action(this.OnVuforiaInitialized)); }
private void OnDestroy() { VuforiaARController expr_05 = VuforiaARController.Instance; expr_05.UnregisterVuforiaInitializedCallback(new Action(this.OnVuforiaInitialized)); expr_05.UnregisterVuforiaStartedCallback(new Action(this.OnVuforiaStarted)); expr_05.UnregisterTrackablesUpdatedCallback(new Action(this.OnTrackablesUpdated)); expr_05.UnregisterOnPauseCallback(new Action <bool>(this.OnPause)); TextTracker tracker = TrackerManager.Instance.GetTracker <TextTracker>(); if (tracker != null) { tracker.WordList.UnloadAllLists(); } }