private void redrawModel()
 {
     if (m_lastInfo == default(VehicleInfo))
     {
         return;
     }
     m_previewRenderer.RenderVehicle(m_lastInfo, m_defaultAssets.root.color, true);
 }
示例#2
0
 private void redrawModel()
 {
     if (m_lastInfo == default(VehicleInfo))
     {
         return;
     }
     m_previewRenderer.RenderVehicle(m_lastInfo, m_lastColor == Color.clear ? Color.HSVToRGB(Math.Abs(m_previewRenderer.cameraRotation) / 360f, .5f, .5f) : m_lastColor, true);
 }
 private void redrawModel()
 {
     if (m_lastInfo == default(VehicleInfo))
     {
         m_previewPanel.isVisible = false;
         return;
     }
     m_previewPanel.isVisible = true;
     m_previewRenderer.RenderVehicle(m_lastInfo, Color.HSVToRGB(Math.Abs(m_previewRenderer.cameraRotation) / 360f, .5f, .5f), true);
 }
 private void redrawModel()
 {
     if (m_lastInfo == default(VehicleInfo))
     {
         m_previewPanel.isVisible = false;
         return;
     }
     m_previewPanel.isVisible = true;
     m_previewRenderer.RenderVehicle(m_lastInfo, (m_color?.selectedColor ?? Color.clear) == Color.clear ? Color.HSVToRGB(Math.Abs(m_previewRenderer.CameraRotation) / 360f, .5f, .5f) : m_color.selectedColor, true);
 }