Exemplo n.º 1
0
    private void RedoClickTeachersHandFourth()
    {
        CancelInvoke("ClickTeachersPromptFourth");
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要教师接卡");
        Invoke("ClickTeachersPromptFourth", 2);
    }
Exemplo n.º 2
0
    private void RedoClickTeachersHandSecond()
    {
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要教师给相应物品");
        CancelInvoke("ClickTeachersPromptSecond");
        Invoke("ClickTeachersPromptSecond", 2);
    }
Exemplo n.º 3
0
    private void RedoClickFDTeachersHandFirst()
    {
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要辅助教师协助");
        CancelInvoke("ClickFDTeachersPromptFirst");
        Invoke("ClickFDTeachersPromptFirst", 2);
    }
Exemplo n.º 4
0
    private void RedoClickMicoUI()
    {
        CancelInvoke("ClickPromptMicoUI");
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要教师说话");
        Invoke("ClickPromptMicoUI", 2);
    }
Exemplo n.º 5
0
    private void RedoClickTeachersHandThird()
    {
        CancelInvoke("ClickTeachersPromptThird");
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要教师提示");
        Invoke("ClickTeachersPromptThird", 2);
    }
Exemplo n.º 6
0
    private void RedoClickTeachersHandFinal()
    {
        CancelInvoke("ClickTeachersPromptFinal");
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要教师给相应物品");
        Invoke("ClickTeachersPromptFinal", 2);
    }
Exemplo n.º 7
0
    void RedoWYXhBY()
    {
        swapUI.GetMicroBtn.gameObject.GetUIFlash().StopFlash();
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要妈妈说话");
        CancelInvoke("WYXhBYTip");
        Invoke("WYXhBYTip", 2);
    }
Exemplo n.º 8
0
    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);
    }
Exemplo n.º 9
0
    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);
    }
Exemplo n.º 10
0
    void RedoLsJieka()
    {
        //ClickDispatcher.Inst.EnableClick = false;
        HighLightCtrl.GetInstance().FlashOff(jshand);
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要教师接卡");
        CancelInvoke("ClickLsHandTip");
        Invoke("ClickLsHandTip", 2);
    }
Exemplo n.º 11
0
    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);
    }
Exemplo n.º 12
0
    void RedoFdlsDika()
    {
        //ClickDispatcher.Inst.EnableClick = false;
        HighLightCtrl.GetInstance().FlashOff(fdlshand);
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要辅助教师协助");
        CancelInvoke("ClickFdlsDikaHandTip");
        Invoke("ClickFdlsDikaHandTip", 2);
    }
Exemplo n.º 13
0
    void RedoWyGiveClickMMhand()
    {
        //ClickDispatcher.Inst.EnableClick = false;
        HighLightCtrl.GetInstance().FlashOff(mmHand);
        TipUI tip = UIManager.Instance.GetUI <TipUI>("TipUI");

        tip.SetTipMessage("需要妈妈给相应物品");
        CancelInvoke("WyGiveClickMMHandTip");
        Invoke("WyGiveClickMMHandTip", 2);
    }
Exemplo n.º 14
0
    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);
    }
Exemplo n.º 15
0
 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);
     }
 }
Exemplo n.º 16
0
    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());
    }
Exemplo n.º 17
0
 private void Awake()
 {
     stageSelect = GameObject.FindObjectOfType<StageSelect>();
     tipUI = GameObject.FindObjectOfType<TipUI>();
     JsonManager.instance.CheckInstance();
 }