private static void OnChangeHorizonIndicator(MySyncShipController sync, ref SetHorizonIndicatorMsg msg, MyNetworkClient sender) { if (sync.m_shipController == null) { return; } sync.m_shipController.HorizonIndicatorEnabled = msg.IndicatorState; if (Sync.IsServer) { MySession.Static.SyncLayer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success); } }
private static void OnChangeHorizonIndicator(MySyncShipController sync, ref SetHorizonIndicatorMsg msg, MyNetworkClient sender) { if (sync.m_shipController == null) return; sync.m_shipController.HorizonIndicatorEnabled = msg.IndicatorState; if(Sync.IsServer) MySession.Static.SyncLayer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success); }