public static void openLogin() { ConfirmUtil.TryToDispear(); checkInit(); login_obj.SetActive(true); main_obj.SetActive(false); }
void issueSure(DealBody item) { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("DealIssue"); buffer.WriteLong(item.id); buffer.WriteLong(item.uid); NetUtil.getInstance.SendMessage(buffer); }
void delDeal(DealBody item) { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("DealDel"); buffer.WriteLong(item.id); buffer.WriteLong(MainData.instance.user.id); NetUtil.getInstance.SendMessage(buffer); }
void comfirmDelete() { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("BankAccountDel"); buffer.WriteLong(MainData.instance.user.id); buffer.WriteString(MainData.instance.user.bacnkAccount.accounts[index]); NetUtil.getInstance.SendMessage(buffer); }
void confirmDelete(MainData.EmailBody email) { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("DeleteEmail"); buffer.WriteLong(MainData.instance.user.id);//编号 buffer.WriteString(email.id + ""); NetUtil.getInstance.SendMessage(buffer); }
void comfirmDelete() { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("FriendDel"); buffer.WriteLong(MainData.instance.user.id); buffer.WriteString("" + friend.fid); NetUtil.getInstance.SendMessage(buffer); }
void _reject() { ConfirmUtil.TryToDispear(); MainData.UserData user = datas[selectIndex]; ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("AdminSellerOpration"); buffer.WriteInt(1); buffer.WriteLong(user.id); NetUtil.getInstance.SendMessage(buffer); }
void _revoke() { ConfirmUtil.TryToDispear(); DealBody.Order order = orders[selectIndex]; ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("AdminOrderRevoke"); buffer.WriteLong(order.item.id); buffer.WriteLong(order.id); NetUtil.getInstance.SendMessage(buffer); }
void delRevertSure(RevertDel revert) { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("RevertDel"); buffer.WriteLong(revert.id); buffer.WriteLong(MainData.instance.user.id); buffer.WriteLong(revert.fatherId); NetUtil.getInstance.SendMessage(buffer); }
void comfirmDelete() { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("AddressChange"); buffer.WriteByte(1); buffer.WriteLong(MainData.instance.user.id); buffer.WriteString(MainData.instance.user.addresses[index]); NetUtil.getInstance.SendMessage(buffer); }
void _fk() { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("DealOrderUpdate"); buffer.WriteLong(order.dealId); buffer.WriteLong(order.id); buffer.WriteLong(MainData.instance.user.id); buffer.WriteByte(1); NetUtil.getInstance.SendMessage(buffer); }
void confirmGrab() { ConfirmUtil.TryToDispear(); ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("DealGrab"); buffer.WriteLong(pushs[index].id); buffer.WriteLong(MainData.instance.user.id); Transform gab_tran = transform.FindChild("grab"); UIInput input = gab_tran.FindChild("inputer").GetComponent <UIInput>(); int num = int.Parse(input.value); buffer.WriteInt(num); //UIToggle toggle = gab_tran.FindChild("flag").GetComponent<UIToggle>(); //buffer.WriteByte((byte)(pushs[index].helpFlag && toggle.value ? 1 : 0)); NetUtil.getInstance.SendMessage(buffer); }
public void tryToReconnect() { ConfirmUtil.TryToDispear(); connect(); }
void confirmDeleteMore(SendMessageEntity entity) { ConfirmUtil.TryToDispear(); NetUtil.getInstance.SendMessage(entity.buffer); }
// Update is called once per frame void Update() { if (NetUtil.getInstance.mustLogin && !ConfirmUtil.isConfirmShow() && !LoadUtil.isActivity() && !DialogUtil.isPopTips()) { if (pushEvent != null) { pushEvent.ignoreAll(); } NetUtil.getInstance.mustLogin = false; ConfirmUtil.confirm("你的账号在别处登录了", goToLogin, exit); return; } List <ByteBuffer> modules = NetUtil.getInstance.Module; if (modules.Count > 0) { foreach (ByteBuffer buffer in modules) { buffer.ReadInt();//成功 int size = buffer.ReadInt(); for (int i = 0; i < size; i++) { byte code = buffer.ReadByte(); if (moduleCalls.ContainsKey(code)) { ModuleCallBack call = moduleCalls[code]; call(buffer); } } } modules.Clear(); } modules = NetUtil.getInstance.Cachs; if (modules.Count > 0) { modules.Clear(); } if (Input.GetKeyDown(KeyCode.Escape)) { if (LoadUtil.isActivity()) { return; } if (ConfirmUtil.isConfirmShow()) { ConfirmUtil.TryToDispear(); return; } GameObject photographer = GameObject.Find("photographer"); if (photographer != null && photographer.activeSelf) { photographer.GetComponent <PhotographEvent>().over(); return; } GameObject popup_select = GameObject.Find("popup-select"); if (popup_select != null && popup_select.activeSelf) { popup_select.GetComponent <PopupListEvent>().close(); return; } if (DialogUtil.isPopTips()) { DialogUtil.dispear(); return; } ConfirmUtil.confirm("是否退出?", exit); } }
void _openLogin() { ConfirmUtil.TryToDispear(); main_obj.SetActive(false); login_obj.SetActive(true); }
public void exit() { ConfirmUtil.TryToDispear(); Application.Quit(); }