void Start() { // If you have selected a total of 6 cities, it will return to the main menu. if (InputName.Try == 6) { InputName.Try = 0; SceneManager.LoadScene("Menu"); InputName.theListener.close(); } // Code to instruct to select a button at random random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "NorthAmerica"; break; case 2: path = "Europe"; break; case 3: path = "Asia"; break; case 4: path = "SouthAmerica"; break; case 5: path = "Africa"; break; case 6: path = "Oceania"; break; default: break; } txt.text = "Look at " + path; ///////////////////////////////////////////////// // Generate a TCP instance theSender = new StimulusSender(); // Generate a TCP instance used for button number sender theSender.open("localhost", 12140); if (InputName.Try == 0) // If this trial is the first of a session, { InputName.theListener = new StimulusSender(); // Generate a TCP instance used to listen to signals from openvibe InputName.theListener.open("localhost", 12240); } ////////////////////////// cb.normalColor = new Color(132f, 132f, 132f, 255f); //cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; NorthAmerica.colors = cb; SouthAmerica.colors = cb; Asia.colors = cb; Africa.colors = cb; Europe.colors = cb; Oceania.colors = cb; noArect = GetComponent<RectTransform>(); }
void Start() { theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; Button0.colors = cb; Button1.colors = cb; Button2.colors = cb; Button3.colors = cb; Button5.colors = cb; Button4.colors = cb; }
void Start() { random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "Iceland"; break; case 2: path = "London"; break; case 3: path = "Paris"; break; case 4: path = "Barcelona"; break; case 5: path = "Rome"; break; case 6: path = "Firenze"; break; default: break; } txt.text = "Look at " + path; theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = new Color(132f, 132f, 132f, 255f); //cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; Iceland.colors = cb; Barcelona.colors = cb; Paris.colors = cb; London.colors = cb; Firenze.colors = cb; Rome.colors = cb; }
void Start() { random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "Alaska"; break; case 2: path = "Vancouver"; break; case 3: path = "Newyork"; break; case 4: path = "LosAngeles"; break; case 5: path = "Lasvegas"; break; case 6: path = "Chicago"; break; default: break; } txt.text = "Look at " + path; theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = new Color(132f, 132f, 132f, 255f); //cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; Alaska.colors = cb; LA.colors = cb; Newyork.colors = cb; Vancouver.colors = cb; Chicago.colors = cb; Lasvegas.colors = cb; }
void Start() { random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "Capetown"; break; case 2: path = "Egypt"; break; case 3: path = "Ethiopia"; break; case 4: path = "Johannesburg"; break; case 5: path = "Pretoria"; break; case 6: path = "Nairobi"; break; default: break; } txt.text = "Look at " + path; theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = new Color(132f, 132f, 132f, 255f); //cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; Capetown.colors = cb; Johannesburg.colors = cb; Ethiopia.colors = cb; Egypt.colors = cb; Nairobi.colors = cb; Pretoria.colors = cb; }
void Start() { random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "Dubai"; break; case 2: path = "Shanghai"; break; case 3: path = "Seoul"; break; case 4: path = "India"; break; case 5: path = "Hongkong"; break; case 6: path = "Tokyo"; break; default: break; } txt.text = "Look at " + path; theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = new Color(132f, 132f, 132f, 255f); //cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; Dubai.colors = cb; India.colors = cb; Seoul.colors = cb; Shanghai.colors = cb; Tokyo.colors = cb; Hongkong.colors = cb; }
void Start() { random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "Barbados"; break; case 2: path = "EasterIsland"; break; case 3: path = "Cusco"; break; case 4: path = "BuenosAires"; break; case 5: path = "Patagonia"; break; case 6: path = "RiodeJaneiro"; break; default: break; } txt.text = "Look at " + path; theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = new Color(132f, 132f, 132f, 255f); //cb.normalColor = Color.gray; cb.colorMultiplier = 1.5f; Barbados.colors = cb; BuenosAires.colors = cb; Cusco.colors = cb; EasterIsland.colors = cb; RiodeJaneiro.colors = cb; Patagonia.colors = cb; }
void Start() { random = UnityEngine.Random.Range(1, 7); switch (random) { case 1: path = "Fiji"; break; case 2: path = "PortMoresby"; break; case 3: path = "Wellington"; break; case 4: path = "Melbourne"; break; case 5: path = "Sydney"; break; case 6: path = "Vanuatu"; break; default: break; } txt.text = "Look at " + path; theSender = new StimulusSender(); theSender.open("localhost", 12140); cb.normalColor = new Color(132f, 132f, 132f, 255f); cb.colorMultiplier = 1.5f; Fiji.colors = cb; Melbourne.colors = cb; Wellington.colors = cb; PortMoresby.colors = cb; Vanuatu.colors = cb; Sydney.colors = cb; }