public void CmdUploadSheetJson(string ClientName, string json) //Received sheet data from host
 {
     foreach (GameObject obj in clients)
     {
         Networking_Client C = obj.GetComponent <Networking_Client>();
         if (C.Name == ClientName)
         {
             Debug.Log("Sending sheet to " + ClientName);
             C.UploadSheetJson(json); //Send sheet data to client
         }
     }
 }
 public void SetUpdate(string exclude) //Set update available for everyone except exclude
 {
     ReloadClients();
     foreach (GameObject obj in clients)
     {
         Networking_Client C = obj.GetComponent <Networking_Client>();
         if (C.Name != exclude)
         {
             C.DoUpdates();
         }
     }
 }
 public void CmdDownloadSheetFromHost(string ClientName) //Request for sheet host is using
 {
     Debug.Log("Identifying Host: " + Host);
     ReloadClients();
     foreach (GameObject obj in clients)
     {
         Networking_Client C = obj.GetComponent <Networking_Client>();
         if (C.Name == Host)
         {
             C.RpcRequestSheetJson(ClientName); //Request Sheet data from host
         }
     }
 }
        public void CmdGetData(string ClientName, int CharID)
        {
            string strings = SaveInstance.active.getAllData(CharID);

            foreach (GameObject obj in clients)
            {
                Networking_Client C = obj.GetComponent <Networking_Client>();
                if (C.Name == ClientName)
                {
                    Debug.Log("Sending data for " + CharID + " to " + ClientName + ":    " + strings);
                    C.RpcSetData(CharID, strings);
                }
            }
        }
        public void CmdTestCanSave(string ClientName, int CharID, string Check)
        {
            bool passwordResult = SaveInstance.active.CanSave(CharID, Check);

            Debug.Log("Checking CanSave for " + CharID + " result: " + passwordResult.ToString());
            foreach (GameObject obj in clients)
            {
                Networking_Client C = obj.GetComponent <Networking_Client>();
                if (C.Name == ClientName)
                {
                    C.ReceivePasswordTest(CharID, passwordResult);
                }
            }
        }
        public void CmdRequiresSavePassword(string ClientName, int CharID)
        {
            bool hasPassword = SaveInstance.active.NeedsPasswordForSave(CharID);

            Debug.Log("Checking NeedsPasswordForSave for " + CharID + " result: " + hasPassword.ToString());
            foreach (GameObject obj in clients)
            {
                Networking_Client C = obj.GetComponent <Networking_Client>();
                if (C.Name == ClientName)
                {
                    C.ReceiveCheckForPassword(CharID, hasPassword);
                }
            }
        }
        public void CmdGetJsonFromFile(string ClientName, string name, string folder) //Request for character data
        {
            string json = SaveInstance.active.GetJsonFromFile(name, folder);          //Load Json data

            ReloadClients();
            foreach (GameObject client in clients)
            {
                Networking_Client clientData = client.GetComponent <Networking_Client>();
                if (clientData.Name == ClientName)
                {
                    clientData.RpcSetJsonData(int.Parse(name), json); //Send character option data
                }
            }
        }