// Function: Send // (Internal) Sends an address and values to the Grasshopper daemon (outside of Unity). public void Send(string address, ArrayList values) { // DebugExtras.Log("ghDaemon: Send()"); OSCMessage msg = new OSCMessage(address); values.Insert( 0, "game"); // for message routing, the first value tells the daemon who the sender is (in all of our cases, it's the game!) msg.SetValues(values); if (oscSender.IsRunning()) { if (backlogOutgoing.Count > 0) { SendBacklog(); } oscSender.Send(msg); } else { DebugExtras.Log("socket ain't open yet."); consecutiveFails++; backlogOutgoing.Add(msg); Invoke("SendBacklog", retryWait); } }