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 }
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 }