Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (m_FinalRoot.activeInHierarchy)
     {
         if (Time.time - m_fLastPointInfoUpdateTime > 1) //没间隔1s 更新一次
         {
             m_fLastPointInfoUpdateTime = Time.time;
             CG_ASK_FINALGUILDWARPOINTINFO infoPak = (CG_ASK_FINALGUILDWARPOINTINFO)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_FINALGUILDWARPOINTINFO);
             infoPak.SetWarType(m_curWarType);
             infoPak.SendPacket();
         }
     }
 }
Ejemplo n.º 2
0
 void AskFinalWarInfo()
 {
     if (m_curWarSchedule == (int)GC_RET_CURGUILDWARTYPE.RETTYPE.FINAL_JION)
     {
         CG_ASK_FINALGUILDWARPOINTINFO infoPak = (CG_ASK_FINALGUILDWARPOINTINFO)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_FINALGUILDWARPOINTINFO);
         infoPak.SetWarType(m_curWarType);
         infoPak.SendPacket();
     }
     else if (m_curWarSchedule == (int)GC_RET_CURGUILDWARTYPE.RETTYPE.CHALLENGEWAR)
     {
         CG_ASK_FINALGUILDWARPOINTINFO infoPak = (CG_ASK_FINALGUILDWARPOINTINFO)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_FINALGUILDWARPOINTINFO);
         infoPak.SetWarType(m_curWarType);
         infoPak.SendPacket();
     }
 }