Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
                }
            }
        }