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()); }
private void stopThread(int threadID, GameObject button) { if (androidDevice) { BufferServicesControllerInterface.stopThread(threadID); updateClientInfo = false; int clientID = Convert.ToInt32(button.transform.Find("ClientInfoPanel(Clone)").tag.Split(' ')[1]); clientIDsToUpdateInfo.Remove(clientID); } GameObject.Destroy(button.transform.Find("ClientInfoPanel(Clone)").gameObject); }