update tùm lum tùm la

This commit is contained in:
2026-04-01 02:41:07 +07:00
parent 6ebf140ff6
commit a50209b05c
754 changed files with 136616 additions and 55 deletions

View File

@@ -0,0 +1,25 @@
using UnityEngine;
namespace OnlyScove.Scripts
{
public class LampInteractable : BaseInteractable
{
[SerializeField] private Light targetLight;
[SerializeField] private bool isOn = true;
private void Start()
{
if (targetLight != null)
targetLight.enabled = isOn;
}
protected override void PerformInteraction(PlayerStateMachine player)
{
isOn = !isOn;
if (targetLight != null)
targetLight.enabled = isOn;
Debug.Log($"[Lamp] Toggled {(isOn ? "ON" : "OFF")}");
}
}
}