sdk
This commit is contained in:
parent
f898cd7e94
commit
f2fa5899fb
@ -43,7 +43,7 @@ namespace BF
|
|||||||
public Action<bool, string> luaServerListCallback;
|
public Action<bool, string> luaServerListCallback;
|
||||||
public Action<bool, string> luaAccountLoginCallback;
|
public Action<bool, string> luaAccountLoginCallback;
|
||||||
public Action<bool, string> luaAccountChangeCallback;
|
public Action<bool, string> luaAccountChangeCallback;
|
||||||
// public FacebookSdk FBSdk = new FacebookSdk();
|
public FacebookSdk FBSdk = new FacebookSdk();
|
||||||
public BFAccountInfo accountInfo; // 账号信息
|
public BFAccountInfo accountInfo; // 账号信息
|
||||||
public string firebaseToken = string.Empty;
|
public string firebaseToken = string.Empty;
|
||||||
public Action<string> luaFirebaseTokenCallback;
|
public Action<string> luaFirebaseTokenCallback;
|
||||||
@ -66,8 +66,8 @@ namespace BF
|
|||||||
{
|
{
|
||||||
// facebook
|
// facebook
|
||||||
BFLog.Log("FBSdk.Init");
|
BFLog.Log("FBSdk.Init");
|
||||||
// FBSdk.Init();
|
FBSdk.Init();
|
||||||
// FBSdk.SetULoginListener(this);
|
FBSdk.SetULoginListener(this);
|
||||||
|
|
||||||
// appid 登陆
|
// appid 登陆
|
||||||
#if UNITY_IOS
|
#if UNITY_IOS
|
||||||
@ -77,7 +77,7 @@ namespace BF
|
|||||||
|
|
||||||
void OnApplicationPause(bool pauseStatus)
|
void OnApplicationPause(bool pauseStatus)
|
||||||
{
|
{
|
||||||
// FBSdk.OnApplicationPause(pauseStatus);
|
FBSdk.OnApplicationPause(pauseStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
@ -149,7 +149,7 @@ namespace BF
|
|||||||
BFLog.Log("新版 登陆中心 Login:" + type);
|
BFLog.Log("新版 登陆中心 Login:" + type);
|
||||||
if (type == LoginType.Facebook)
|
if (type == LoginType.Facebook)
|
||||||
{
|
{
|
||||||
// FBSdk.Login();
|
FBSdk.Login();
|
||||||
}
|
}
|
||||||
else if(type == LoginType.Google)
|
else if(type == LoginType.Google)
|
||||||
{
|
{
|
||||||
@ -173,7 +173,7 @@ namespace BF
|
|||||||
{
|
{
|
||||||
if (type == LoginType.Facebook)
|
if (type == LoginType.Facebook)
|
||||||
{
|
{
|
||||||
// FBSdk.Logout();
|
FBSdk.Logout();
|
||||||
}
|
}
|
||||||
else if(type == LoginType.Google)
|
else if(type == LoginType.Google)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user