Skip to content

Commit

Permalink
auto sign in at start
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkesy committed May 30, 2022
1 parent 883c8e1 commit 282b4ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private void Start()
var inputDebug = gameObject.AddComponent<DebugEditorInput>();
inputDebug.AddListener(this);
#endif
GooglePlayServicesManager.Instance.SignIn();
}

private void LoadFlagsFromPlayerPrefs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,10 @@ public void GetHighScore(ISignInListener listener)
}
});
}

public void SignIn()
{
PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptOnce, result => { });
}
}
}

0 comments on commit 282b4ad

Please sign in to comment.