public void SendNetSerializable <T>(EZMultiplayer manager, T packet, DeliveryMethod options) where T : INetSerializable { _netDataWriter.Reset(); WriteNetSerializable(_netDataWriter, packet); manager.SendToAll(_netDataWriter, options); }
public void Send <T>(EZMultiplayer manager, T packet, DeliveryMethod options) where T : class, new() { _netDataWriter.Reset(); Write(_netDataWriter, packet); manager.SendToAll(_netDataWriter, options); }