Example #1
0
 void Update()
 {
     if (m_pay_time > 0)
     {
         m_pay_time -= Time.deltaTime;
         if (m_pay_time <= 0)
         {
             m_pay_time = 0;
             protocol.game.cmsg_pay msg = new protocol.game.cmsg_pay();
             msg.channel = game_data._instance.m_channel;
             net_http._instance.send_msg <protocol.game.cmsg_pay>(opclient_t.OPCODE_PAY, msg);
         }
     }
 }
Example #2
0
 public void message(s_message message)
 {
     if (message.m_type == "recharge_load_end")
     {
         m_shop_init = true;
         reset(m_index);
     }
     if (message.m_type == "recharge_android_success")
     {
         m_pay_time = 3;
     }
     if (message.m_type == "recharge_web")
     {
         protocol.game.cmsg_pay msg = new protocol.game.cmsg_pay();
         msg.channel = game_data._instance.m_channel;
         net_http._instance.send_msg <protocol.game.cmsg_pay>(opclient_t.OPCODE_PAY, msg);
     }
 }