36 lines
968 B
C#
36 lines
968 B
C#
using DA_Assets.DAI;
|
|
using DA_Assets.Logging;
|
|
using System;
|
|
using UnityEngine;
|
|
|
|
#pragma warning disable CS0162
|
|
|
|
namespace DA_Assets.FCU.Model
|
|
{
|
|
[Serializable]
|
|
public class ShadowSettings : MonoBehaviourLinkerRuntime<FigmaConverterUnity>
|
|
{
|
|
|
|
[SerializeField] ShadowComponent shadowComponent = ShadowComponent.Figma;
|
|
public ShadowComponent ShadowComponent
|
|
{
|
|
get => shadowComponent;
|
|
set
|
|
{
|
|
switch (value)
|
|
{
|
|
case ShadowComponent.TrueShadow:
|
|
#if TRUESHADOW_EXISTS == false
|
|
DALogger.LogError(FcuLocKey.log_asset_not_imported.Localize(nameof(ShadowComponent.TrueShadow)));
|
|
SetValue(ref shadowComponent, ShadowComponent.Figma);
|
|
return;
|
|
#endif
|
|
break;
|
|
}
|
|
|
|
SetValue(ref shadowComponent, value);
|
|
}
|
|
}
|
|
|
|
}
|
|
} |