void handleButton(Button b) { Text buttonText = b.transform.FindChild("Text").GetComponent <Text>() as Text; switch (buttonText.text) { case "Use Device Id": PlayFabLoginCalls.RequestSpinner(); PlayFabLoginCalls.LoginWithDeviceId(false); break; case "Register": authController.activeState = AuthenticationController.LoginStates.Register; break; case "Exit": //authController.activeState = AuthenticationController.LoginStates.Register; Application.Quit(); break; case "Enter Account Manually": authController.activeState = AuthenticationController.LoginStates.Manual; break; } }
void CreateNewAndLogin() { this.newAccountPrompt.gameObject.SetActive(false); PlayFabLoginCalls.RequestSpinner(); PlayFabLoginCalls.LoginWithDeviceId(this.createNewAccount); }