99jamin af8790f026 인테리어 추가
Interior 폴더에 정리
2025-04-16 11:42:07 +09:00

34 lines
829 B
C#

#if UNITY_EDITOR
using Seagull.Interior_01.Utility.Inspector;
#endif
using Seagull.Interior_01.Utility;
using UnityEditor;
using UnityEngine;
using UnityEngine.Events;
#if UNITY_EDITOR
#endif
namespace Seagull.Interior_01 {
public class DeskLamp : TurnOnAble {
[YureiButton("Turn On")] public UnityEvent onTurnOn;
[YureiButton("Turn Off")] public UnityEvent onTurnOff;
[SerializeField] private MeshRenderer lightBoxRenderer;
public void turnOn() {
lightBoxRenderer.material.EnableKeyword("_EMISSION");
}
public void turnOff() {
lightBoxRenderer.material.DisableKeyword("_EMISSION");
}
}
#if UNITY_EDITOR
[CustomEditor(typeof(DeskLamp))]
public class DeskLampInspector : YureiInspector { }
#endif
}