/// <summary> /// 发送网络信息 /// </summary> /// <param name="info">信息</param> public void SendNetMessage(string info) { if (team == Team.red) { netManager.sendMessageToClient(info); } else { netManager.sendMessageToServer(info); } }
void handleButton(Button b) { networkManager.sendMessageToClient(b.transform.parent.FindChild("uid").GetComponent <Text>().text); }