Exemplo n.º 1
0
    public void SetID()
    {
        data = GameObject.FindGameObjectWithTag("Data").GetComponent <ExcelStore>();


        if (IDInput.text != PlayerPrefs.GetString("ID"))
        {
            PlayerPrefs.SetString("ID", IDInput.text);
            PlayerPrefs.Save();
            data.ID = IDInput.text;
            ID      = IDInput.text;
            IDWarning.SetActive(false);
        }
        else
        {
            IDWarning.SetActive(true);
        }

        if (IDInput.text == null)
        {
            StartButton.interactable = false;
        }
        else
        {
            StartButton.interactable = true;
        }
    }
Exemplo n.º 2
0
    public void Start()
    {
        RD   = GetComponent <RestartData>();
        rls  = GameObject.FindGameObjectWithTag("Data").GetComponent <ReceiveLiveStream>();
        data = GameObject.FindGameObjectWithTag("Data").GetComponent <ExcelStore>();
        calibrationContinue.interactable = false;

        //slider.maxValue = (float) data.BaseLineTime;
    }
Exemplo n.º 3
0
    public void StartUp()
    {
        data = GameObject.FindGameObjectWithTag("Data").GetComponent <ExcelStore>();
        data.InitializeVariables();
        rls.PrepForTest();

        //buttons
        redMouse.SetActive(true);
        greenMouse.SetActive(false);
    }
    public void Start()
    {
        testTensor = new float[]
        {
            140.285470581055f, 41.11237678527829f, 5.836468505859f, 0.0f,
            0.0f, 0.0f, 2.463f, 0.0f, 64.28699999999999f, 0.7287418126212261f
        };

        naos    = GetComponent <DataGathering>();
        eyeData = GetComponent <ReceiveLiveStream>();
        store   = GetComponent <ExcelStore>();
    }