Ejemplo n.º 1
0
        public bool Register(string wechatAppId, string wechatSecret, string wechatUniversalLink)
        {
#if UNITY_EDITOR
            Debug.LogWarning("[Wechat] Editor is not supported.");
            return(false);
#else
            return(wechatAPIBase.Register(wechatAppId, wechatSecret, wechatUniversalLink));
#endif
        }
Ejemplo n.º 2
0
        public WechatSignIn(string wechatAppId, string wechatSecret, string wechatUniversalLink)
        {
#if UNITY_EDITOR
            Debug.LogWarning("[Wechat] Editor is not supported.");
#else
#if UNITY_IOS
            wechatAPIBase = new WechatAPIIOS();
#elif UNITY_ANDROID
            wechatAPIBase = new WechatAPIAndroid();
#endif
            wechatAPIBase.Register(wechatAppId, wechatSecret, wechatUniversalLink);
#endif
        }