コード例 #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
        }