void OnBattleClick()
    {
        if (m_Fellow == null)
        {
            return;
        }

        if (false == m_Fellow.IsValid())
        {
            return;
        }

        CG_CALL_FELLOW pak = (CG_CALL_FELLOW)PacketDistributed.CreatePacket(MessageID.PACKET_CG_CALL_FELLOW);

        pak.SetGuid(m_Fellow.Guid);
        pak.SendPacket();

        GameManager.gameManager.SoundManager.PlaySoundEffect(30);

        if (m_NewPlayerGuideFlag_Step == 1)
        {
            if (PartnerFrameLogic.Instance())
            {
                PartnerFrameLogic.Instance().NewPlayerGuide(1);
            }
        }
    }
Exemple #2
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_CALL_FELLOW packet = (CG_CALL_FELLOW )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }