Ejemplo n.º 1
0
    void OnUnLockBreedingClick()
    {
        if (m_BabyFellow == null)
        {
            GUIData.AddNotifyData("#{10331}");
            return;
        }

        if (m_LockBreeding == false)
        {
            return;
        }

        //发包同步
        CG_FELLOW_BREEDING_UNLOCK pak = (CG_FELLOW_BREEDING_UNLOCK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_FELLOW_BREEDING_UNLOCK);

        pak.SetGuid(m_BabyFellow.Guid);
        pak.SendPacket();
    }
Ejemplo n.º 2
0
    void OnCancelBreedingClick()
    {
        if (m_BabyFellow == null)
        {
            GUIData.AddNotifyData("#{10331}");
            return;
        }

        if (m_LockBreeding)
        {
            //发包同步
            CG_FELLOW_BREEDING_UNLOCK pak = (CG_FELLOW_BREEDING_UNLOCK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_FELLOW_BREEDING_UNLOCK);
            pak.SetGuid(m_BabyFellow.Guid);
            pak.SendPacket();
        }

        m_BabyFellow        = null;
        m_BabyFellowBuffer  = null;
        m_FellowIndex       = 0;
        m_FellowIndexBuffer = 0;
        DestroyPartnerFakeObj();
        m_PushPartnerButton.SetActive(true);
        m_PlayerTips.SetActive(true);
    }