예제 #1
0
파일: Server.cs 프로젝트: senlace/shinkai
        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);
            }
        }
예제 #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);
                }
            }
        }