Beispiel #1
0
 void Start()
 {
     Instance = this;
     JiaMiJiaoYanCtrlObj.SetActive(IsJiaMiTest);
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent01 += ClickPcvrBtEvent01;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent02 += ClickPcvrBtEvent02;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent03 += ClickPcvrBtEvent03;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent04 += ClickPcvrBtEvent04;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent05 += ClickPcvrBtEvent05;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent06 += ClickPcvrBtEvent06;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent07 += ClickPcvrBtEvent07;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent08 += ClickPcvrBtEvent08;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent09 += ClickPcvrBtEvent09;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent10 += ClickPcvrBtEvent10;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent11 += ClickPcvrBtEvent11;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent12 += ClickPcvrBtEvent12;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent13 += ClickPcvrBtEvent13;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent14 += ClickPcvrBtEvent14;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent15 += ClickPcvrBtEvent15;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent16 += ClickPcvrBtEvent16;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent17 += ClickPcvrBtEvent17;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent18 += ClickPcvrBtEvent18;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent19 += ClickPcvrBtEvent19;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent20 += ClickPcvrBtEvent20;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent21 += ClickPcvrBtEvent21;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent22 += ClickPcvrBtEvent22;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent23 += ClickPcvrBtEvent23;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent24 += ClickPcvrBtEvent24;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent25 += ClickPcvrBtEvent25;
     PcvrComInputEvent.GetInstance().ClickPcvrBtEvent26 += ClickPcvrBtEvent26;
 }
Beispiel #2
0
    /// <summary>
    /// 获取IO板的信息.
    /// </summary>
    void GetMessage()
    {
        if (CheckReadCountIsLock())
        {
            return;
        }

        byte[] buffer = MyCOMDevice.ComThreadClass.ReadByteMsg;
        if (CheckGetMsgInfoIsError(buffer))
        {
            return;
        }

        if (IsJiaoYanHid && IsJiaoYanJiaMiCoreDt)
        {
            CheckHidJiaMiXinPian(buffer);
        }
        CheckIsPlayerActivePcvr();
        KeyProcess(buffer);

        if (HardWareTest.GetInstance() != null)
        {
            HardWareTest.GetInstance().CheckReadComMsg(buffer);
        }
    }
Beispiel #3
0
    /// <summary>
    /// 开始校验IO板加密芯片.
    /// </summary>
    public void StartJiaoYanIO()
    {
        if (IsJiaoYanHid)
        {
            return;
        }

        if (HardWareTest.GetInstance() != null)
        {
        }
        else
        {
            if (JiaoYanSucceedCount >= JiaoYanFailedMax)
            {
                //校验加密芯片成功后就不用再继续校验.
                return;
            }

            if ((JiaoYanState == JIAOYANENUM.FAILED && JiaoYanFailedCount >= JiaoYanFailedMax) || IsJiaMiJiaoYanFailed)
            {
                //加密芯片校验失败后,无需继续校验.
                return;
            }
        }

        RandomJiaoYanDt();
        IsJiaoYanHid     = true;
        MiMaJiaoYanCount = 0;
        CancelInvoke("CloseJiaoYanIO");
        Invoke("CloseJiaoYanIO", 5f);
        Debug.Log("Start IO JiaMi JiaoYan...");
    }
 void Start()
 {
     Instance = this;
     JiaMiJiaoYanCtrlObj.SetActive(IsJiaMiTest);
     IsTestHardWare   = true;
     AnJianLabel.text = "";
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetEnterBtEvent += ClickSetEnterBtEvent;
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetMoveBtEvent += ClickSetMoveBtEvent;
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickCloseDongGanBtEvent += ClickCloseDongGanBtEvent;
     InputEventCtrl.GetInstance().OnCaiPiaJiWuPiaoEvent += OnCaiPiaJiWuPiaoEvent;
 }
Beispiel #5
0
 void Start()
 {
     Instance = this;
     JiaMiJiaoYanCtrlObj.SetActive(IsJiaMiTest);
     IsTestHardWare   = true;
     AnJianLabel.text = "";
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetEnterBtEvent += ClickSetEnterBtEvent;
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetMoveBtEvent += ClickSetMoveBtEvent;
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickStartBtOneEvent += ClickStartBtOneEvent;
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickCloseDongGanBtEvent += ClickCloseDongGanBtEvent;
     InputEventCtrl.GetInstance().mListenPcInputEvent.ClickLaBaBtEvent += ClickLaBaBtEvent;
     //pcvr.GetInstance();
     //pcvr.CloseFangXiangPanPower();
 }
Beispiel #6
0
    void OnEndJiaoYanIO(JIAOYANENUM val)
    {
        IsJiaoYanHid = false;
        if (IsInvoking("CloseJiaoYanIO"))
        {
            CancelInvoke("CloseJiaoYanIO");
        }

        switch (val)
        {
        case JIAOYANENUM.FAILED:
        {
            JiaoYanFailedCount++;
            JiaoYanSucceedCount = 0;
            if (HardWareTest.GetInstance() != null)
            {
                HardWareTest.GetInstance().JiaMiJiaoYanFailed();
            }
            break;
        }

        case JIAOYANENUM.SUCCEED:
        {
            JiaoYanSucceedCount++;
            JiaoYanFailedCount = 0;
            if (HardWareTest.GetInstance() != null)
            {
                HardWareTest.GetInstance().JiaMiJiaoYanSucceed();
            }
            break;
        }
        }
        JiaoYanState = val;
        Debug.Log("OnEndJiaoYanIO -> JiaoYanState " + JiaoYanState);

        if (HardWareTest.GetInstance() != null)
        {
        }
        else
        {
            if (JiaoYanFailedCount >= JiaoYanFailedMax)
            {
                //加密校验失败.
                Debug.Log("JMXP JYSB...");
                IsJiaMiJiaoYanFailed = true;
            }
        }
        IsJiaoYanJiaMiCoreDt = false;
    }
Beispiel #7
0
 void Start()
 {
     Instance = this;
     JiaMiJiaoYanCtrlObj.SetActive(IsJiaMiTest);
     InputEventCtrl.GetInstance().ClickPcvrBtEvent01 += ClickPcvrBtEvent01;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent02 += ClickPcvrBtEvent02;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent03 += ClickPcvrBtEvent03;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent04 += ClickPcvrBtEvent04;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent05 += ClickPcvrBtEvent05;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent06 += ClickPcvrBtEvent06;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent07 += ClickPcvrBtEvent07;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent08 += ClickPcvrBtEvent08;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent09 += ClickPcvrBtEvent09;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent10 += ClickPcvrBtEvent10;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent11 += ClickPcvrBtEvent11;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent12 += ClickPcvrBtEvent12;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent13 += ClickPcvrBtEvent13;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent14 += ClickPcvrBtEvent14;
     InputEventCtrl.GetInstance().ClickPcvrBtEvent15 += ClickPcvrBtEvent15;
 }