Ejemplo n.º 1
0
Archivo: compass.cs Proyecto: npict/AR3
    // Use this for initialization
    void Start()
    {
        heading  = 0;
        txt.text = "starting";
        StartCoroutine(InitializeLocation());

        Debug.Log("<color=red>Estimote</color>");
        //Instantiate(awe_estimote);
        awe_estimote.beginScanAtStart = true;
        awe_estimote.Setup();
        //awe_estimote.StartScan();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //As beacons only update once every 1 second by default, there's no need to update app too fast anyway
        Application.targetFrameRate = 20;

        //Make UI more of an app than game and show navigation buttons
        Screen.fullScreen = false;

        //Setup the AWE Estimote Asset
        awe_estimote.Setup();

        //Change text on the scan button as we begin scanning immediately
        if (awe_estimote.beginScanAtStart)
        {
            scanButtonText.text = "STOP SCANNING";
        }
    }