void BackMachine_OnClick()
 {
     if (GameConnet.m_uiKeepMID != 0)
     {
         JurassicManager.BuyInGame(GameConnet.m_uiKeepMID);
     }
 }
 void Next_OnClick()
 {
     JurassicManager.page += JurassicManager.page == JurassicManager.sumPage ? -JurassicManager.page : 1;
     JurassicManager.GetMachineDataU2G();
     if (change != null)
     {
         change(JurassicManager.page);
     }
 }
 void Back_OnClick()
 {
     JurassicManager.page += JurassicManager.page == 0 ? JurassicManager.sumPage : -1;
     JurassicManager.GetMachineDataU2G();
     if (change != null)
     {
         change(JurassicManager.page);
     }
 }
    /// <summary>
    /// Raises the click event.
    /// </summary>
    public void OnClick()
    {
        JurassicManager.machineNumber = machineId;
        bool buyin = false;

        switch (MachineStatus)
        {
        case MachineType.hold:
            JurassicManager.BuyInGame(machineId);
            break;

        case MachineType.Idle:
            if (machineInIdle != null)
            {
                machineInIdle();
            }
            MachineStatus = MachineType.hold;
            GameConnet.m_oGameClient.Send(ENUM_GAME_FRAME.Jurassic, (uint)ENUM_JURASSIC_PACKID_GC.C2G_Machine_GetMachineInfo, GameConnet.m_oGameClient.DoSerialize <uint> (machineId));
            break;

        case MachineType.MyKeep:
            //Debug.LogWarning (clickId+"---"+ machineId);
            if (clickId == machineId)
            {
                clickId = 0;
                buyin   = true;
                JurassicManager.BuyInGame(machineId);
            }
            else
            {
                GameConnet.m_oGameClient.Send(ENUM_GAME_FRAME.Jurassic, (uint)ENUM_JURASSIC_PACKID_GC.C2G_Machine_GetMachineInfo, GameConnet.m_oGameClient.DoSerialize <uint> (machineId));
            }
            break;

        default:
            GameConnet.m_oGameClient.Send(ENUM_GAME_FRAME.Jurassic, (uint)ENUM_JURASSIC_PACKID_GC.C2G_Machine_GetMachineInfo, GameConnet.m_oGameClient.DoSerialize <uint>(machineId));
            break;
        }
        if (!buyin)
        {
            clickId = machineId;
        }
    }