We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc1203 commit e3d61bbCopy full SHA for e3d61bb
Assets/Script/Model/GoogleSignIn/GoogleSignInHandler.cs
@@ -43,8 +43,7 @@ void Awake()
43
}
44
45
46
- GoogleLoginButton.interactable = false;
47
- GoogleLogoutButton.interactable = false;
+
48
49
//填入ClientID及可以取得id, token
50
configuration = new GoogleSignInConfiguration
@@ -54,7 +53,18 @@ void Awake()
54
53
};
55
56
57
-
+ if (GoogleSignIn.Configuration != null)
+ {
58
+ GoogleLoginButton.interactable = false;
59
+ GoogleLogoutButton.interactable = false;
60
+ }
61
+ else
62
63
+ GoogleLoginButton.interactable = true;
64
65
66
67
68
69
70
/// <summary>
0 commit comments