public void QQLogin(DelegateLoginResp resp) { delegateLoginResp = resp; #if UNITY_ANDROID && !UNITY_EDITOR androidInterface.QQLogin(); #elif UNITY_IOS && !UNITY_EDITOR #endif }
public void onQQLoginCallBack(string msg) { //Debug.Log("onQQLoginCallBack" + msg); if (delegateLoginResp != null) { delegateLoginResp(msg); delegateLoginResp = null; } }
public void onWeiXinLoginCallBack(string msg) { Debug.Log("LoginCallBack:" + msg); if (delegateLoginResp != null) { delegateLoginResp(msg); delegateLoginResp = null; } }
// private Action<string> ActionLoginResp; public void WeiXinLogin(DelegateLoginResp resp) { delegateLoginResp = resp; #if UNITY_ANDROID && !UNITY_EDITOR androidInterface.WeiXinLogin(); #elif UNITY_IOS && !UNITY_EDITOR //IOSInterface.WeiXinLogin(); Action <string> callBack = (string s) => { resp(s); }; weChatTool.Login(callBack); #endif }