public void TestAuth() { // Plugin requires a bit of initialization. See the GameTester.cs file for more info InitializeGameTester(); var playerPin = UserPin.text ?? string.Empty; if (playerPin.Length > 0) { GameTester.SetPlayerPin(playerPin); } // Call the /auth endpoint and pass the player pin or connectToken. If successful a player token will be returned and is used for data point and unlock calls StartCoroutine(GameTester.Api.Auth(o => { if (o.Code == GameTesterResponseCode.Success) { StartGame(); } })); }
// private private void InitializeGameTester() { GameTesterMode mode = GameTesterMode.Sandbox; GameTester.Initialize(mode, "validToken", debugLogging: true); }