public IEnumerator stopFilePlaybackCLientAndServer() { BufferServicesControllerInterface.stopThread(threadID); yield return(new WaitForSeconds(0.5f)); //Stop Clients Debug.Log("Stopped Clients = " + BufferServicesControllerInterface.stopClients()); //Stop Server Debug.Log("Stopped Server = " + BufferServicesControllerInterface.stopServer()); }
public void stopClients() { if (!clientsSwitch.GetComponent <Toggle>().isOn) { if (androidDevice) { if (BufferServicesControllerInterface.stopClients()) { clientsServiceName = "None"; } GameObject.Find("ClientsNotifications").GetComponent <Text>().text = clientsServiceName; } GameObject.Find("ClientsButtonText").GetComponent <Text>().text = "Start Clients"; clearThreadsDropDownPanel(); } }