public void InviteHint() { if (input.text == "") { tip.text = "邀请码不能为空!"; ///tip.color = Color.red; Debug.Log("Tip:InviteHint:邀请码不能为空"); } else if (input.text.Length != 5) { tip.text = "邀请码必须是5位!"; ///tip.color = Color.red; Debug.Log("Tip:InviteHint:邀请码必须是5位,input.text=" + input.text); } else { ///uint dwSpreaderID = uint.Parse(input.text); uint dwSpreaderID = Surrogate.InviteCodeToId(input.text); GameNet.UserInfo.getInstance().modifySpreader(dwSpreaderID); } }