Пример #1
0
        private static void Send2Client(SimpleNetManager.Player player, ShowInfoData data)
        {
            if (NetServer.NetManager != null)
            {
                AppInfoData2Client msg = new AppInfoData2Client();
                msg.data = data;

                NetServer.NetManager.Send(player.session, msg);
            }
        }
Пример #2
0
        private static void Send2Client(LiteNetLibManager.Player player, ShowInfoData data)
        {
            if (LitNetServer.NetManager != null)
            {
                AppInfoData2Client msg = new AppInfoData2Client();
                msg.data = data;

                LitNetServer.NetManager.Send(player, msg);
            }
        }