public void OnClick() { if (Image && Image.sprite) { var data = Image.sprite.name; _remoteAPI.SendTextMsg(data); _dialogManager.HideDialog(DialogName.ChatPanel); } }
public override void OnItemSelected(Item <string> item) { if (!item) { return; } var data = item.GetData(); if (string.IsNullOrEmpty(data)) { return; } _remoteAPI.SendTextMsg(data); _dialogManager.HideDialog(DialogName.ChatPanel); }
public override void OnItemSelected(Item <JianMengItem> item) { if (item == null) { return; } var data = item.GetData(); if (data == null) { return; } _remoteAPI.SendJianMeng(data.cmd); _dialogManager.HideDialog(DialogName.ChatPanel); var attrs = new Dictionary <string, string>(); attrs.Add("cmd", data.cmd); _analyticManager.Event("jianmeng_send", attrs); }
/// <summary> /// 注册成功 /// </summary> private void RegisterOk() { _registerFinished = true; _dialogManager.ShowWaitingDialog(false); _dialogManager.HideDialog(DialogName.RegisterDialog); _dialogManager.ShowConfirmBox( "恭喜您注册成功!", true, "马上登陆", () => { LoginRecord.LastUsername = _registerUsername; LoginRecord.LastPassword = _registerPassword; LoginRecord.LastLoginType = LoginRecord.NormalUser; LoginRecord.SaveAll(); _appController.ClearAppStateData(); _network.InitLogin(); }, false, null, null, true, false, true); _remoteAPI.RequestUserInfo(); }