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

25 lines
1.1 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("Освещение")]
[Tooltip("Конфиг света с префабом и настройками. Если пусто — света в комнате не будет.")]
public RoomLightConfig lightConfig;
[Header("Предметы (опционально)")]
public RoomPropSet propSet;
}
}