/// <summary>Toggles the display state of the cellphone</summary> public void ToggleCellPhone() { hasDigiDAccountProperty = PlayerPropertyManager.Instance.GetProperty <DigiDProperty>("DigiD"); if (!isToggling) { // Set App Icons active to false if not available yet. if (!hasDigiDAccountProperty.Value) { digidAppObject.SetActive(false); } else { digidAppObject.SetActive(true); payInvoiceButton.SetActive(true); if (!digidBekijkenQuest.IsCompleted && !hasFocus) { digidIntroActive = true; DigiDIntro.Restore(); DigiDIntro.Start(); } if (digidBekijkenQuest.IsCompleted && payInvoiceQuest.IsActive) { payInvoiceButton.SetActive(true); } if (payInvoiceQuest.IsCompleted) { payInvoiceButton.GetComponent <Button>().interactable = false; } } OpenScreen(CellPhoneScreen.Home); StartCoroutine(ToggleEnumerator()); } }
/// <summary>Toggles the display state of the cellphone if only one touch is recorded</summary> public void OnCellPhoneButtonClick() { hasDigiDAccountProperty = PlayerPropertyManager.Instance.GetProperty <DigiDProperty>("DigiD"); if (Application.platform == RuntimePlatform.Android && Input.touchCount != 1) { return; } ToggleCellPhone(); }
/// <summary>PinLogin function gets called when Pin is correct. Redirects to DigiDGeneral or DigiDGeneralEmpty based on DigiDAccount Property</summary> public void PinLoginCorrect() { hasDigiDAccountProperty = PlayerPropertyManager.Instance.GetProperty <DigiDProperty>("DigiD"); if (pinHelper.activeSelf) { pinHelper.SetActive(false); } if (hasDigiDAccountProperty.Value) { MainCanvasManager.Instance.OpenCellPhoneScreen(CellPhoneScreen.DigiDGeneral); } else { MainCanvasManager.Instance.OpenCellPhoneScreen(CellPhoneScreen.DigiDGeneralEmpty); } }
private void OnAppClicked() { LoginUnPwAnimationObject.SetActive(false); hasDigiDAccountProperty = PlayerPropertyManager.Instance.GetProperty <DigiDProperty>("DigiD"); bool heeftAccount = true; if (!heeftAccount) { MainCanvasManager.Instance.OpenCellPhoneScreen(CellPhoneScreen.DigiDGeneralEmpty); } else { MainCanvasManager.Instance.OpenCellPhoneScreen(CellPhoneScreen.DigiDLoginUnPw); LoginUnPwAnimationObject.SetActive(true); if (LoginUnPwButtonObject.activeInHierarchy) { LoginUnPwButtonObject.SetActive(false); } StartCoroutine(LateButtonShow()); } }