private void Process(Client client, ClientVehicleColorChange msg) { SavedVehicle vehicle; if (state.history.vehicles.TryGetValue(msg.vehicleGuid, out vehicle)) { vehicle.colors[msg.index] = msg; SendToAll(client.peer, msg); } }
private void Process(ClientVehicleColorChange msg) { var subname = GuidHelper.FindComponentInChildren <SubName>(msg.vehicleGuid); if (subname != null) { using (new MessageBlocker()) { subname.SetColor(msg.index, msg.hsb, msg.color); } } }