public void SetupIntro()
    {
        s_ins = this;

        if (skipIntro)
        {
            IntroDone();
            return;
        }

        AddIntroEventHandler();

        MergeMultiTarget.instance.OnTrackingFound += OnTrackingFound;
        MergeMultiTarget.instance.OnTrackingLost  += OnTrackingLost;

        audioPlayer = GetComponent <AudioSource> ();

        if (customReticle != null)
        {
            customReticle.SetActive(false);
        }

        tutorialModel = tutorialModelRoot.GetComponent <ModelAnimationManager>();
        if (LRController != null)
        {
            lrg = LRController.GetComponent <LineRendererController>();
        }
    }
Beispiel #2
0
    public void SetupIntro()
    {
        for (int index = 0; index < objsToReparent.Length; index++)
        {
            objsToReparent[index].ApplyReparenting();
        }

        AddIntroEventHandler();

        MergeMultiTarget.instance.OnTrackingFound += OnTrackingFound;
        MergeMultiTarget.instance.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;
    }
Beispiel #3
0
    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;
    }