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; } }
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; }
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>(); }