void Awake() { setLog (); Texture2D ci = (Texture2D)Resources.Load("CorrectSelection", typeof(Texture2D)); Texture2D ii = (Texture2D)Resources.Load("IncorrectSelection", typeof(Texture2D)); correctSelectionIndicator = ci.GetPixels (); incorrectSelectionIndicator = ii.GetPixels(); blackTexture = new Color[width*height]; for(int i =0; i< width*height; i++) { blackTexture[i] = Color.black; } sys = GameObject.Find("System"); mainScript = sys.GetComponent<MainScript>(); ServerThread server = new ServerThread(); Thread st = new Thread(new ThreadStart(server.startServer)); st.Start(); Debug.Log("Started Server"); OSCPhaseSpaceThread oscPSClient = new OSCPhaseSpaceThread(); Thread oscPSt = new Thread(new ThreadStart(oscPSClient.startServer)); oscPSt.Start(); Debug.Log("Started OSC Client"); OSCThread oscClient = new OSCThread(); Thread osct = new Thread(new ThreadStart(oscClient.startServer)); osct.Start(); }
void Awake() { setLog(); //Texture2D ci = (Texture2D)Resources.Load("CorrectSelection", typeof(Texture2D)); //Texture2D ii = (Texture2D)Resources.Load("IncorrectSelection", typeof(Texture2D)); //correctSelectionIndicator = ci.GetPixels(); //incorrectSelectionIndicator = ii.GetPixels(); blackTexture = new Color[width * height]; for (int i = 0; i < width * height; i++) { blackTexture[i] = Color.black; } //sys = GameObject.Find("System"); //mainScript = sys.GetComponent<MainScript>(); ServerThread server = new ServerThread(); Thread st = new Thread(new ThreadStart(server.startServer)); st.Start(); Debug.Log("Started Server"); OSCPhaseSpaceThread oscPSClient = new OSCPhaseSpaceThread(); Thread oscPSt = new Thread(new ThreadStart(oscPSClient.startServer)); oscPSt.Start(); Debug.Log("Started OSC Client"); OSCThread oscClient = new OSCThread(); Thread osct = new Thread(new ThreadStart(oscClient.startServer)); osct.Start(); }