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 stopServer() { if (!serverSwitch.GetComponent <Toggle>().isOn) { if (androidDevice) { if (BufferServicesControllerInterface.stopServer()) { serverServiceName = "None"; } GameObject.Find("ServerNotifications").GetComponent <Text>().text = serverServiceName; serverUptime = "00:00"; } GameObject.Find("ServerButtonText").GetComponent <Text>().text = "Start Server"; } }