Ejemplo n.º 1
0
        private void SendInvitationC2S(long friendId, BattleType type, InvitationState state)
        {
            InvitationMatchC2S message = new InvitationMatchC2S();

            message.friendId   = friendId;
            message.battleType = type;
            message.state      = state;

            byte[] data = ProtobufUtils.Serialize(message);
            NetworkManager.SendRequest(MsgCode.InvitationMatchMessage, data);
        }
        private void SendInvitationC2S( long friendId, BattleType type, InvitationState state )
        {
            UILockManager.SetGroupState( UIEventGroup.Middle, UIEventState.WaitNetwork );

            InvitationMatchC2S message = new InvitationMatchC2S();

            message.friendId = friendId;
            message.battleType = type;
            message.state = state;

            byte[] data = ProtobufUtils.Serialize( message );
            NetworkManager.SendRequest( MsgCode.InvitationMatchMessage, data );
        }