Skip to content

Commit b01ccb2

Browse files
authored
Merge pull request #43 from rickytheoldtree/newmigration
Singleton in SignInHelperObject.cs Fix
2 parents 19bc0bb + dfeb8b0 commit b01ccb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GoogleSignIn/Impl/SignInHelperObject.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class SignInHelperObject : MonoBehaviour {
2727

2828
internal static SignInHelperObject Instance {
2929
get {
30+
if (instance) {
31+
return instance;
32+
}
3033
if (Application.isPlaying) {
3134
// add an invisible game object to the scene
3235
GameObject obj = new GameObject("GoogleSignInHelperObject");

0 commit comments

Comments
 (0)