예제 #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
        }
예제 #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
        }