Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        objectMaterials         = modelObject.GetComponent <Renderer> ().materials;
        originalObjectMaterials = modelObject.GetComponent <Renderer> ().materials;
        originalScale           = transform.localScale;

        cloudHandler = CloudRecognition.GetComponent <SimpleCloudHandler> ();
    }
Ejemplo n.º 2
0
    void Start()
    {
        mTrackableBehaviour = GetComponent <TrackableBehaviour>();
        if (mTrackableBehaviour)
        {
            mTrackableBehaviour.RegisterTrackableEventHandler(this);
        }

        if (GameObject.FindGameObjectWithTag("cloudrec").GetComponent <SimpleCloudHandler>())
        {
            simpleCloud = GameObject.FindGameObjectWithTag("cloudrec").GetComponent <SimpleCloudHandler>();
        }
    }
    private void Start()
    {
        currentId  = "";
        canGetData = false;

        Instance = this;

        mCloudRecoBehaviour = GetComponent <CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)
        {
            mCloudRecoBehaviour.RegisterEventHandler(this);
        }
    }
Ejemplo n.º 4
0
    void Start()
    {
        mTrackableBehaviour = GetComponent <TrackableBehaviour>();
        if (mTrackableBehaviour)
        {
            mTrackableBehaviour.RegisterTrackableEventHandler(this);
        }

        simpleCloud = GameObject.FindGameObjectWithTag("cloudrec").GetComponent <SimpleCloudHandler>();

        phoneButton = GetComponentInChildren <PhoneButton>();
        gotolink    = GetComponentInChildren <GoToLink>();
        infoMarker  = GetComponentInChildren <ModelSelect>();
        infoPanel   = GetComponentInChildren <InfoPanel>();
        phonePanel  = phoneButton.gameObject;
        linkPanel   = gotolink.gameObject;
        infoButton  = infoMarker.gameObject;

        phonePanel.SetActive(false);
        linkPanel.SetActive(false);
        infoButton.SetActive(false);
    }