Skip to content

Commit

Permalink
Merge pull request #5 from antonkesy/add-auto-sign-in
Browse files Browse the repository at this point in the history
auto sign in at start
  • Loading branch information
antonkesy authored May 30, 2022
2 parents 883c8e1 + 282b4ad commit 17320ee
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 17320ee

Please sign in to comment.