public override void OnEnable() { base.OnEnable(); _CurrentInputField.text = ""; ATMAudioManager.PlayEF("TransferInputCount"); SetTip(); }
void CardInFinished() { ATMAudioManager.PlayEF("PassWordInput"); ATMScreenManager._Instance.SetCardUser(CardUserManager._CardUser0); ATMTaskManager._Instance.TaskDone(ATMTASKTYPE.CARDIN); ATMScreenManager._Instance.SetScreenByType(SCREENTYPE.INPUTPASSWORD); }
IEnumerator CardInIE() { float waitlength = ATMAudioManager.PlayEF("CardIn"); yield return(new WaitForSeconds(waitlength)); CardInFinished(); }
IEnumerator PassWordErrorIE() { ATMAudioManager.PlayEF("PassWordError"); _InputErrorGo.SetActive(true); yield return(new WaitForSeconds(3f)); _InputErrorGo.SetActive(false); InputClear(); }
public override void OnEnable() { base.OnEnable(); ATMScreenTransfer._Instance.SetUserInfoNull(); _ShowInputErrorGo.SetActive(false); _CurrentInputField.text = ""; ATMAudioManager.PlayEF("TransferInoutID"); SetTip(); }
IEnumerator MoneyOutIE() { while (transform.localPosition.z > _ZMin) { transform.localPosition = Vector3.MoveTowards(transform.localPosition, new Vector3(0, -2f, _ZMin), Time.deltaTime * _Speed); yield return(new WaitForSeconds(Time.deltaTime)); } if (_EventMoneyOut != null) { _EventMoneyOut(); } ATMAudioManager.PlayEF("MoneyOut"); }
IEnumerator Step1() { yield return(null); Debug.Log("Step1"); ATMTrainingPanelTextManager._Instance.AddText("欢迎来到ATM练习模式"); ATMAudioManager.PlayEF("ATM_Welcome"); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); yield return(new WaitForSeconds(2)); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); yield return(StartCoroutine(SetCallBack(() => ExecuteNextStep()))); }
IEnumerator ShowTransferOutING() { _ShowMessage.text = "转账中,请稍等。。。"; yield return(new WaitForSeconds(2)); if (ATMScreenTransfer._Instance._transfermoney == 0) { ATMAudioManager.PlayEF("OperationError"); _ShowMessage.text = "对不起,暂不能办理此项业务"; } else { _ShowMessage.text = "向 " + ATMScreenTransfer._Instance._targetName + " 转账<color=red> " + string.Format("{0:N}", ATMScreenTransfer._Instance._transfermoney) + "</color>RMB 成功\n請選擇下個服務項目"; } yield return(new WaitForSeconds(2)); ShowButton(); }
IEnumerator Step2() { yield return(new WaitForSeconds(0.1f)); Debug.Log("Step2"); ATMAudioManager.PlayEF("ATM_taskPanel"); yield return(StartCoroutine(ATMTrainingSecondPanelManager.Instance.NextTip())); ATMAudioManager.PlayEF("ATM_cardIn"); yield return(StartCoroutine(ATMTrainingSecondPanelManager.Instance.NextTip())); ATMAudioManager.PlayEF("ATM_takeMoney"); yield return(StartCoroutine(ATMTrainingSecondPanelManager.Instance.NextTip())); yield return(StartCoroutine(ATMTrainingSecondPanelManager.Instance.NextTip())); yield return(StartCoroutine(SetCallBack(() => ExecuteNextStep()))); }
IEnumerator CardInOutIE(bool _iscardIn) { if (_iscardIn) { while (transform.localPosition.z < _ZMax) { transform.localPosition += Vector3.forward * _Speed * Time.deltaTime; yield return(new WaitForSeconds(Time.deltaTime)); } } else { while (transform.localPosition.z > _ZMin) { transform.localPosition -= Vector3.forward * _Speed * Time.deltaTime; yield return(new WaitForSeconds(Time.deltaTime)); } ATMAudioManager.PlayEF("Exit"); } }
private IEnumerator CardInTip() { _isContinue = false; _CardInGo.SetActive(true); foreach (Transform childImage in _CardInGo.transform) { if (childImage.GetComponent <Image>() != null) { childImage.GetComponent <Image>().CrossFadeAlpha(0, 0f, true); childImage.GetComponent <Image>().CrossFadeAlpha(1f, 2, true); } } //yield return new WaitForSeconds(2); ATMTaskTipFingerManager._Instance.ShowTipFinger(ATMRealCard.Instance.GetCardGo().transform); ATMRealCard.Instance._switch = true; ATMRealCard._EventCardIn += Continue; while (!_isContinue) { yield return(new WaitForEndOfFrame()); } _CardInGo.transform.Find("Text").GetComponent <Text>().text = ""; _isContinue = false; yield return(new WaitForSeconds(5)); foreach (Transform childImage in _CardInGo.transform) { if (childImage.GetComponent <Image>() != null) { childImage.GetComponent <Image>().CrossFadeAlpha(0f, 0.5f, true); } } yield return(new WaitForSeconds(2)); Destroy(_CardInGo); ATMTrainingPanelTextManager._Instance.AddText("恭喜您已完成\n<color=red> 插卡 </color>练习\n接下来是\n <color=red>取钱</color> 练习"); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); yield return(new WaitForSeconds(ATMAudioManager.PlayEF("ATM_finish2"))); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); }
IEnumerator TaskPanelTip() { _TaskPanelGo.SetActive(true); foreach (Transform childImage in _TaskPanelGo.transform) { if (childImage.GetComponent <Image>() != null) { childImage.GetComponent <Image>().CrossFadeAlpha(0, 0f, true); childImage.GetComponent <Image>().CrossFadeAlpha(1f, 2, true); } } // yield return new WaitForSeconds(2); ATMTaskTipFingerManager._Instance.ShowTipFinger(ATMTaskPannelManager._Instance.GetTaskBtn().transform); while (!_isContinue) { yield return(new WaitForEndOfFrame()); } _TaskPanelGo.transform.Find("Text").GetComponent <Text>().text = ""; _isContinue = false; yield return(new WaitForSeconds(5)); foreach (Transform childImage in _TaskPanelGo.transform) { if (childImage.GetComponent <Image>() != null) { childImage.GetComponent <Image>().CrossFadeAlpha(0, 0.5f, true); } } yield return(new WaitForSeconds(2)); ATMTaskPannelManager._Instance.HideTaskPanel(); Destroy(_TaskPanelGo); ATMTrainingPanelTextManager._Instance.AddText("恭喜您已完成\n<color=red> 查看任务</color> 练习\n接下来是\n <color=red>插卡</color> 练习"); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); yield return(new WaitForSeconds(ATMAudioManager.PlayEF("ATM_finish1"))); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); }
private IEnumerator MoneyOutTip() { ATMScreenManager._Instance.SetScreenByType(SCREENTYPE.TRANSFEROUT); _MoneyOutGo.SetActive(true); foreach (Transform childImage in _MoneyOutGo.transform) { if (childImage.GetComponent <Image>() != null) { childImage.GetComponent <Image>().CrossFadeAlpha(0, 0f, true); childImage.GetComponent <Image>().CrossFadeAlpha(1f, 2, true); } } ATMTrainningTransferOut._Instance.SendMoneyOut(); ATMMaoyeye._EventMoneyOut += () => ATMTaskTipFingerManager._Instance.ShowTipFinger(ATMTrainingBankNote.Instance.GetMoneyGo().transform); ATMMaoyeye._EventMoneyBeenTaken += Continue; while (!_isContinue) { yield return(new WaitForEndOfFrame()); } _MoneyOutGo.transform.Find("Text").GetComponent <Text>().text = ""; _isContinue = false; yield return(new WaitForSeconds(5)); foreach (Transform childImage in _MoneyOutGo.transform) { if (childImage.GetComponent <Image>() != null) { childImage.GetComponent <Image>().CrossFadeAlpha(0f, 2, true); } } yield return(new WaitForSeconds(3)); Destroy(_MoneyOutGo); ATMTrainingPanelTextManager._Instance.AddText("恭喜您已完成所有练习\n接下来将返回主界面"); yield return(StartCoroutine(ATMTrainingPanelTextManager._Instance.NextText())); yield return(new WaitForSeconds(ATMAudioManager.PlayEF("ATM_finish3"))); }
void OnEnable() { ATMAudioManager.PlayEF("UserPanel"); SetTip(); }
void OnEnable() { ATMAudioManager.PlayEF("CountMoney"); StartCoroutine(MoneyOutIE()); _IsShow = true; }
void CardInFinished() { ATMAudioManager.PlayEF("PassWordInput"); ATMScreenManager._Instance.SetCardUser(CardUserManager._CardUser0); }