cnburkeaidan / AH-Greenville

Code ninjas black belt game
GNU General Public License v3.0
0 stars 0 forks source link

Tutorial Needed #9

Closed almondjoycam closed 1 year ago

almondjoycam commented 1 year ago

The playtester consensus currently is that there should be a first-time player tutorial.

For now, it would probably be a good idea to create a UI system that will happen every time a user logs in, regardless of whether they exist or not.

However, I'm trying to look into the Unity Authentication SDK to determine when a new player ID is created. I'll keep updating in the comments.

almondjoycam commented 1 year ago

You can try using AuthenticationService.Instance.SessionTokenExists (Boolean) when signing in the player. If the value returns true, the player already has a profile. Otherwise, the game will call AuthenticationService.Instance.SignInAnonymouslyAsync() and create a new profile. That is when you know that this is the first time, and then you can call a tutorial event function to display the first-time UI. There's an example on Sign in a cached user.

I'm not sure if this works the way I think it does, but it is worth trying for sure.

cnburkeaidan commented 1 year ago

Tutorials are hard to make