public void LoginAnonymousButtonClicked() { GoogleButton.interactable = false; AnonymousButton.interactable = false; Text buttonText = AnonymousButton.GetComponentInChildren <Text>(); string oldButtonText = buttonText.text; buttonText.text = "Logging in..."; authHandler.LoginAnonymousUser((auth) => { buttonText.text = oldButtonText; APIService.Instance.access_token = auth.IdToken; InvalidateUI(); }, (error) => { GoogleButton.interactable = true; AnonymousButton.interactable = true; buttonText.text = "Login Failed. Try Again?"; }); }