// Add listeners to the OnLoginAttempt event in order to get a // PIN to log in with on https://app.yur.fit/code or yur.watch private void OnLoginRequest(YURShortcodeResponse obj) { try { Instance.Log("Attempting to Log In..."); OnLoginAttempt.Invoke(obj); } catch (UnityException e) { Instance.Log("Could not get login request. Here's why: " + e.Message); } }
public void UpdateText(YURShortcodeResponse response) { _pinText.text = response.ShortCode; _urlText.text = response.VerificationURL; }