Public tk2dTextMesh chatInput;
string stringToEdit;
if(chatInput.text!="")
{
stringToEdit = chatInput.text;
Debug.Log("stringToEdit.."+ stringToEdit);
string encodedText = WWW.EscapeURL(stringToEdit);
SendChat(encodedText);
}
chatInput.text = "";
stringToEdit ="";
chatInput.Commit();
this is my code here can you please tell me what changes should i make