void Start() { trackingObject = MergeTutorial.ins.myTrackingSystem; UpdateRotation(); SpawnMoveCubeCanvas(); LRController.isInMoveCubeTut = true; }
public void SetupIntro() { for (int index = 0; index < objsToReparent.Length; index++) { objsToReparent[index].ApplyReparenting(); } // if (skipIntro) // { // IntroDone(); // return; // } multiTarget = GameObject.Find("MultiTarget"); AddIntroEventHandler(); myTrackingSystem = multiTarget.GetComponent <IntroTrackableEventHandler>(); myTrackingSystem.OnTrackingFound += OnTrackingFound; myTrackingSystem.OnTrackingLost += OnTrackingLost; audioPlayer = GetComponent <AudioSource> (); Debug.Log("Grabbed audio source: " + audioPlayer); if (customReticle != null) { customReticle.SetActive(false); } tutorialModel = tutorialModelRoot.GetComponent <ModelAnimationManager>(); if (LRController != null) { lrg = LRController.GetComponent <LineRendererController>(); } isInitialized = true; }