/// <summary> /// 微信分享文本 /// </summary> /// <param name="shareType"></param> /// <param name="text"></param> public void WXShareText(WXShareType shareType, string text, Action <bool, bool> onComplete) { m_OnWXShareCallBack = onComplete; m_isReward = false; #if !UNITY_EDITOR CallMethod("WXShareText", shareType.ToString(), text); #if UNITY_IPHONE __WXShareText(shareType.ToString(), text); #endif #endif }
/// <summary> /// 微信分享Url /// </summary> /// <param name="shareType"></param> /// <param name="url"></param> /// <param name="title"></param> /// <param name="desc"></param> public void WXShareUrl(WXShareType shareType, string url, string title, string desc, Action <bool, bool> onComplete, bool isReward) { m_OnWXShareCallBack = onComplete; m_isReward = isReward; #if !UNITY_EDITOR CallMethod("WXShareUrl", shareType.ToString(), url, title, desc); #if UNITY_IPHONE __WXShareUrl(shareType.ToString(), url, title, desc); #endif #endif }
/// <summary> /// 微信分享图片 /// </summary> /// <param name="shareType"></param> /// <param name="path"></param> public void WXSharePicture(WXShareType shareType, string path, Action <bool, bool> onComplete) { m_OnWXShareCallBack = onComplete; m_isReward = false; #if !UNITY_EDITOR CallMethod("WXSharePicture", shareType.ToString(), path); #if UNITY_IPHONE __WXSharePicture(shareType.ToString(), path); #endif #endif }