Souljack/Assets/_Project/Scripts/LevelGenerating/RoomTheme.cs

29 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
namespace _Project.Scripts.LevelGenerating
{
// =====================================================================
// Набор оформления комнаты: материалы и освещение.
// Создаётся в проекте: ПКМ -> Create -> Level -> Room Theme.
// Новая тема - это новые данные, код не меняется.
// =====================================================================
[CreateAssetMenu(menuName = "Level/Room Theme", fileName = "RoomTheme")]
public class RoomTheme : ScriptableObject
{
[Header("Материалы")]
public Material floorMaterial;
public Material wallMaterial;
public Material ceilingMaterial;
[Header("Освещение")]
public bool createLights = true;
public Color lightColor = Color.white;
public float lightIntensity = 1.5f;
public float lightRange = 8f;
[Tooltip("Расстояние между лампами в метрах: большая комната получает сетку ламп")]
public float lightSpacing = 6f;
[Tooltip("На сколько метров ниже потолка висит лампа")]
public float lightDrop = 0.3f;
public LightShadows lightShadows = LightShadows.None;
}
}