public void Login() { Debug.Log("Pressed login button"); userName = userNameInput.text; if (string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(appId)) { Debug.LogError("We need a username and appId to login"); return; } Debug.Log("Before calling rtm"); rtm.Login(appId, token, userName); }
private void button1_Click(object sender, EventArgs e) { username = tbAccountName.Text; rtm.Login(APPID, null, username); SendMessageToChat("user " + tbAccountName.Text + " login status: " + rtm.LoggedIn); }