void TestExport() { var client = new OSCClientSetting(); client.Id = "Client"; client.Port = 12000; client.Address = "127.0.0.1"; var server = new OSCServerSetting(); server.Id = "Server"; server.Port = 12000; var setting = new OSCSetting(); setting.clients = new OSCClientSetting[] { client }; setting.servers = new OSCServerSetting[] { server }; IOHandler.SaveJson(IOHandler.IntoStreamingAssets(settingFileName), setting); }
public void Play(OSCClientSetting setting) { this.Setting = setting; udp_.StartClient(setting.Address, setting.Port); thread_.Start(UpdateSend); }