public void OnCopyBtnClick() { SocialSharingNode node = SchemeSocialSharing.Instance.RandomSharingNode(SocialSharingType.GamePromotion); string prefix = ""; if (node != null && !string.IsNullOrEmpty(node.szTitle)) { prefix = node.szTitle; } TextEditor textEditor = new TextEditor(); textEditor.text = string.Format("{0}{1}", prefix, privateLinkText.text); textEditor.OnFocus(); textEditor.Copy(); UIUtil.ShowSystemMessage(EMChatTipID.CHAT_TIP_GAMEPROMOTION_COPY_SUCCESS); }
private void ShareToPlatform() { if (!bInit) { return; } if (szShareImgUrl == "") { return; } if (m_SharePlatform == EMSocialSharePlatform.EMSSP_WECHAT) { if (WeChatQRFrame != null) { WeChatQRFrame.gameObject.SetActive(true); } if (!bDownLoadQR) { BuildQRLink(); } return; } SocialShareData data = new SocialShareData(); SocialSharingNode node = SchemeSocialSharing.Instance.RandomSharingNode(m_shareType); if (node != null) { data.szTitle = node.szTitle; data.szDesc = node.szDesc; } data.imgUrl = szShareImgUrl; data.sharePlatform = m_SharePlatform; SocialShare.ShareToSocialPlatform(data); }