private void RedoClickTeachersHandFourth() { CancelInvoke("ClickTeachersPromptFourth"); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师接卡"); Invoke("ClickTeachersPromptFourth", 2); }
private void RedoClickTeachersHandSecond() { TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师给相应物品"); CancelInvoke("ClickTeachersPromptSecond"); Invoke("ClickTeachersPromptSecond", 2); }
private void RedoClickFDTeachersHandFirst() { TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要辅助教师协助"); CancelInvoke("ClickFDTeachersPromptFirst"); Invoke("ClickFDTeachersPromptFirst", 2); }
private void RedoClickMicoUI() { CancelInvoke("ClickPromptMicoUI"); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师说话"); Invoke("ClickPromptMicoUI", 2); }
private void RedoClickTeachersHandThird() { CancelInvoke("ClickTeachersPromptThird"); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师提示"); Invoke("ClickTeachersPromptThird", 2); }
private void RedoClickTeachersHandFinal() { CancelInvoke("ClickTeachersPromptFinal"); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师给相应物品"); Invoke("ClickTeachersPromptFinal", 2); }
void RedoWYXhBY() { swapUI.GetMicroBtn.gameObject.GetUIFlash().StopFlash(); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要妈妈说话"); CancelInvoke("WYXhBYTip"); Invoke("WYXhBYTip", 2); }
private void RedoClickTeachersHandSecond() { CancelInvoke("ClickTeachersPromptSecond"); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); //PropsObject pb = goodA.GetComponentInChildren<PropsObject>(); //string cn_name = pb.pData.name_cn; tip.SetTipMessage("需要教师给相应物品"); Invoke("ClickTeachersPromptSecond", 2); }
void RedoLsGiveObj() { //ClickDispatcher.Inst.EnableClick = false; swapUI.GetMicroBtn.gameObject.GetUIFlash().StopFlash(); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师给相应物品"); CancelInvoke("ClickLsGiveObjTip"); Invoke("ClickLsGiveObjTip", 2); }
void RedoLsJieka() { //ClickDispatcher.Inst.EnableClick = false; HighLightCtrl.GetInstance().FlashOff(jshand); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师接卡"); CancelInvoke("ClickLsHandTip"); Invoke("ClickLsHandTip", 2); }
void RedoClickMMHand() { //ClickDispatcher.Inst.EnableClick = false; //swapUI.GetMicroBtn.gameObject.GetUIFlash().StopFlash(); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要妈妈接卡"); CancelInvoke("ClickMMhandTip"); Invoke("ClickMMhandTip", 2); }
void RedoFdlsDika() { //ClickDispatcher.Inst.EnableClick = false; HighLightCtrl.GetInstance().FlashOff(fdlshand); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要辅助教师协助"); CancelInvoke("ClickFdlsDikaHandTip"); Invoke("ClickFdlsDikaHandTip", 2); }
void RedoWyGiveClickMMhand() { //ClickDispatcher.Inst.EnableClick = false; HighLightCtrl.GetInstance().FlashOff(mmHand); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要妈妈给相应物品"); CancelInvoke("WyGiveClickMMHandTip"); Invoke("WyGiveClickMMHandTip", 2); }
void KJRedoLsJiekaSpeak() { //ClickDispatcher.Inst.EnableClick = false; swapUI.GetMicroBtn.gameObject.GetUIFlash().StopFlash(); TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI"); tip.SetTipMessage("需要教师说话"); CancelInvoke("KJClickmicroPhoneJiekaTip"); Invoke("KJClickmicroPhoneJiekaTip", 2); }
public void ShowInputWnd(List <string> inputName, TipUI.OnInputConfirm confirm, TipUI.OnInputCancel cancel, string title, List <InputType> inputType) { if (inputWnd == null) { GameObject temp = GameObject.Instantiate(Resources.Load("Prefabs/UIPrefabs/InputWnd") as GameObject); temp.transform.SetParent(UIRoot.transform); temp.GetComponent <RectTransform>().offsetMin = new Vector2(0, 0); temp.GetComponent <RectTransform>().offsetMax = new Vector2(0, 0); inputWnd = temp.GetComponent <TipUI>(); inputWnd.transform.Find("Title").GetComponent <Text>().text = title; inputWnd.ShowInputWnd(inputName, confirm, cancel, inputType); } else { inputWnd.transform.Find("Title").GetComponent <Text>().text = title; inputWnd.gameObject.SetActive(true); inputWnd.ShowInputWnd(inputName, confirm, cancel, inputType); } }
private void OnNextDo() { TestPaperItem[] Items = transform.GetComponentsInChildren <TestPaperItem>();//数据清除 for (int i = 0; i < Items.Length; i++) { if (Items[i].item_right == Items[i].item_wrong) { TipUI tipUI = UIManager.Instance.GetUI <TipUI>("TipUI"); tipUI.SetTipMessage("还有题目为未做 !"); //UIManager.Instance.SetUIDepthTop("TipUI"); transform.SetAsLastSibling(); tipUI.transform.SetAsLastSibling(); return; } } int right = 0, wrong = 0; for (int i = 0; i < Items.Length; i++) { right += Items[i].item_right; wrong += Items[i].item_wrong; } int curIndex = (int)FlowModel.GetInstance().CurrFlowTask.FlowEnumID; Paper paper = TestPaperModel.GetInstance().paperList[curIndex]; paper.rightNum = right; paper.wrongNum = wrong; //Debug.LogError(curIndex); Finished(); if (evtFinished != null) { evtFinished(); } Debug.Log(FlowModel.GetInstance().CurrFlowTask.thisFlowStepName + " 正确个数和错误个数统计 " + TestPaperModel.GetInstance().TotalCount()); }
private void Awake() { stageSelect = GameObject.FindObjectOfType<StageSelect>(); tipUI = GameObject.FindObjectOfType<TipUI>(); JsonManager.instance.CheckInstance(); }