void OnGUI()
{
GUI.skin = pomeloSkin;
GUI.color = Color.yellow;
GUI.enabled = true;
GUI.Label(new Rect(160, 50, pomelo.width, pomelo.height), pomelo);
GUI.Label(new Rect(75, 350, 50, 20), "name:", pomeloStyle);
userName = GUI.TextField(new Rect(125, 350, 90, 20), userName);
GUI.Label(new Rect(225, 350, 55, 20), "channel:", pomeloStyle);
channel = GUI.TextField(new Rect(280, 350, 100, 20), channel);
if (GUI.Button(new Rect(410, 350, 70, 20), "OK")) {
if (pclient == null) {
Login();
}
}
}