Пример #1
0
        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);
            }
        }
Пример #2
0
		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);

		}