void Start() { GameObject checkGameObject = GameObject.FindGameObjectWithTag("UDPReceiver"); if (checkGameObject != null) { readUDP = checkGameObject.GetComponent <ReadUDP>(); } else { Debug.Log("Cannot find 'ReadUDP' script"); } GameObject createCSVobject = GameObject.Find("CreateCSV"); if (createCSVobject != null) { createCSV = createCSVobject.GetComponent <CreateCSV>(); } else { Debug.Log("Cannot find 'CreateCSV' script"); } prePos1 = atv1.transform.position; prePos2 = atv2.transform.position; prePos3 = atv3.transform.position; active = false; press = 0; oldData1 = 0f; }
void Start() { gameOver = false; StartCoroutine(ColorWaves()); GameObject readUDPObject = GameObject.FindWithTag("ReadUDP"); if (readUDPObject != null) { readUDP = readUDPObject.GetComponent <ReadUDP>(); } if (readUDPObject == null) { print("ColorController cannot find 'ReadUDP' script"); } }
void Start() { GameObject readUDPObject = GameObject.FindWithTag("ReadUDP"); if (readUDPObject != null) { readUDP = readUDPObject.GetComponent <ReadUDP>(); } if (readUDPObject == null) { Debug.Log("'BaselineTBR' cannot find 'ReadUDP' script"); } arrayTBR = new double[10000]; arrayTime = new double[10000]; index = 0; min = 999999f; }
void Start() { i = 1f; gameOver = false; score = 0; state = 1; UpdateScore(); StartCoroutine(SpawnWaves()); GameObject readUDPObject = GameObject.FindWithTag("ReadUDP"); if (readUDPObject != null) { readUDP = readUDPObject.GetComponent <ReadUDP>(); } if (readUDPObject == null) { Debug.Log("GameController cannot find 'ReadUDP' script"); } GameObject calibrationObject = GameObject.FindWithTag("Calibration"); if (calibrationObject != null) { baselineTBR = calibrationObject.GetComponent <BaselineTBR>(); } if (calibrationObject == null) { Debug.Log("GameController cannot find 'Calibration' script"); } GameObject timeControllerObject = GameObject.FindWithTag("TimeController"); if (timeControllerObject != null) { timeControll = timeControllerObject.GetComponent <TimeController>(); limitTime = timeControll.countValue; } if (timeControllerObject == null) { Debug.Log("GameController cannot find 'TimeController' script"); } }