Esempio n. 1
0
        public void BroadcastOnPilotModeChanged(Vehicle vehicle, bool isPiloting)
        {
            ushort playerId = multiplayerSession.Reservation.PlayerId;

            VehicleOnPilotModeChanged packet = new VehicleOnPilotModeChanged(NitroxIdentifier.GetId(vehicle.gameObject), playerId, isPiloting);
            packetSender.Send(packet);
        }
Esempio n. 2
0
 public void BroadcastOnPilotModeChanged(Vehicle vehicle, bool isPiloting)
 {
     if (!string.IsNullOrEmpty(vehicle.gameObject.GetGuid()))
     {
         VehicleOnPilotModeChanged packet = new VehicleOnPilotModeChanged(vehicle.gameObject.GetGuid(), GuidHelper.GetGuid(Player.main.gameObject), isPiloting);
         packetSender.Send(packet);
     }
 }
Esempio n. 3
0
        public void BroadcastOnPilotModeChanged(Vehicle vehicle, bool isPiloting)
        {
            if (!string.IsNullOrEmpty(vehicle.gameObject.GetGuid()))
            {
                ushort playerId = multiplayerSession.Reservation.PlayerId;

                VehicleOnPilotModeChanged packet = new VehicleOnPilotModeChanged(vehicle.gameObject.GetGuid(), playerId, isPiloting);
                packetSender.Send(packet);
            }
        }