Esempio n. 1
0
    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());
    }
Esempio n. 2
0
 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();
     }
 }