Example #1
0
    public void QQLogin(DelegateLoginResp resp)
    {
        delegateLoginResp = resp;
#if UNITY_ANDROID && !UNITY_EDITOR
        androidInterface.QQLogin();
#elif UNITY_IOS && !UNITY_EDITOR
#endif
    }
Example #2
0
 public void onQQLoginCallBack(string msg)
 {
     //Debug.Log("onQQLoginCallBack" + msg);
     if (delegateLoginResp != null)
     {
         delegateLoginResp(msg);
         delegateLoginResp = null;
     }
 }
Example #3
0
 public void onWeiXinLoginCallBack(string msg)
 {
     Debug.Log("LoginCallBack:" + msg);
     if (delegateLoginResp != null)
     {
         delegateLoginResp(msg);
         delegateLoginResp = null;
     }
 }
Example #4
0
    //  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
    }