Ejemplo n.º 1
0
        public WechatSignIn()
        {
#if UNITY_EDITOR
            Debug.LogWarning("[Wechat] Editor is not supported.");
#else
#if UNITY_IOS
            wechatAPIBase = new WechatAPIIOS();
#elif UNITY_ANDROID
            wechatAPIBase = new WechatAPIAndroid();
#endif
#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
        }