PicoLoginController
A class in Root.Township, Features.Core.Device.Pico.
Client menu panel for signing in with a Pico account. Gets a Pico token, then logs in to the game account with platform credentials, or moves on to account registration if none exists.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
PicoLoginController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
9 private and internal fields
| Member | What it is |
|---|---|
private ScalingFadeAnimator accountRequiredAnimator | Panel shown when an account must be registered or linked. |
private const string ExternalLoginRequiredText | Instruction text shown on the panel before the player presses login. |
private bool isLoggingIn | Stops a second press while a login is in progress. |
private static readonly Logger logger | NLog logger for this class. |
private AnalyticalButton loginButton | The button that starts the Pico login. |
private TextRenderer loginInstructionText | Text showing instructions or the last error. |
private ScalingFadeAnimator picoLoginPromptAnimator | Panel holding the Pico login prompt. |
private ScalingFadeAnimator seatedStandingAnimator | Panel for the seated or standing choice that this flow starts from. |
private IUserService userService | Injected user service used for tokens and login. |
Methods
| Member | What it is |
|---|---|
void BackToSitStand() | Fades from the account-required panel back to the seated or standing choice. |
void InitPicoAccountFlow() | Moves from the seated or standing panel to the Pico login prompt, or to the account-required panel if a user is already logged in. |
protected void Inject(IUserService userService) | Receives the user service from VContainer. |