void Start()
    {
        //响应pcvr的按键消息.
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent07 += ClickSetEnterBt;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent08 += ClickSetMoveBt;

        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent01 += ClickFangXiangLBtP1;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent14 += ClickFangXiangRBtP1;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent12 += ClickFangXiangUBtP1;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent13 += ClickFangXiangDBtP1;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent23 += ClickStartBtOne;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent04 += ClickFireBtOne;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent09 += ClickDaoDanBtOne;

        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent02 += ClickFangXiangLBtP2;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent18 += ClickFangXiangRBtP2;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent16 += ClickFangXiangUBtP2;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent17 += ClickFangXiangDBtP2;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent24 += ClickStartBtTwo;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent05 += ClickFireBtTwo;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent10 += ClickDaoDanBtTwo;

        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent03 += ClickFangXiangLBtP3;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent20 += ClickFangXiangRBtP3;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent15 += ClickFangXiangUBtP3;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent19 += ClickFangXiangDBtP3;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent25 += ClickStartBtThree;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent06 += ClickFireBtThree;
        PcvrComInputEvent.GetInstance().ClickPcvrBtEvent11 += ClickDaoDanBtThree;

        PcvrComInputEvent.GetInstance().OnPlayerInsertCoinEvent += OnPlayerInsertCoin;
    }
Example #2
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;
 }
    void TestUpdataPrintCard()
    {
        if (TestCardNum <= 0)
        {
            //没有彩票了.
            return;
        }

        if (m_PcvrPrintCaiPiaoData[0].CaiPiaoVal <= 0)
        {
            return;
        }

        if (Time.time - TestLastPrintCardTime >= 0.5f)
        {
            TestLastPrintCardTime = Time.time;
            PcvrComInputEvent.GetInstance().OnCaiPiaJiChuPiao(pcvrTXManage.CaiPiaoJi.Num01);
            TestCardNum--;
            if (TestCardNum <= 0)
            {
                //没有彩票了.
                PcvrComInputEvent.GetInstance().OnCaiPiaJiWuPiao(pcvrTXManage.CaiPiaoJi.Num01);
            }
        }
    }
 static public InputEventCtrl GetInstance()
 {
     if (Instance == null)
     {
         PcvrComInputEvent pcvrComInput = PcvrComInputEvent.GetInstance();
         GameObject        obj          = pcvrComInput.gameObject;
         Instance = obj.AddComponent <InputEventCtrl>();
         XKGlobalData.GetInstance();
         SetPanelCtrl.GetInstance();
     }
     return(Instance);
 }
    /// <summary>
    /// 初始化.
    /// </summary>
    public void Init()
    {
        PlayerEnum index = PlayerEnum.Null;

        for (int i = 0; i < m_PlayerCoinData.Length; i++)
        {
            index = (PlayerEnum)(i + 1);
            m_PlayerCoinData[i] = new PlayerCoinData(index);
        }

        m_GameYuZhiCaiPiaoData.Init();
        PcvrComInputEvent.GetInstance().OnCaiPiaJiWuPiaoEvent  += OnCaiPiaJiWuPiaoEvent;
        PcvrComInputEvent.GetInstance().OnCaiPiaJiChuPiaoEvent += OnCaiPiaJiChuPiaoEvent;
    }