/// <summary> /// Send a message to everyone listening. /// </summary> /// <param name="channel">Choose whether you want this message to be transmitted reliable or not</param> /// <param name="message">The actual message you want to spread</param> public void BroadcastNetworkData(ENetChannel channel, NetworkData message) { if (Net.GetState() != ENetworkState.Running) { Debug.LogError("Do not try to send data if network is not running!"); return; } Net.BroadcastMessage(channel, message.Serialize()); }