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); }
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); } }
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); } }