This commit is contained in:
2026-06-14 23:55:20 +07:00
parent d731f962a3
commit 132def45c7
16 changed files with 380 additions and 77 deletions

View File

@@ -44,14 +44,14 @@ namespace OnlyScove.Scripts
UpdateLightState();
}
// protected override void PerformInteraction(PlayerStateMachine player)
// {
// isOn = !isOn;
// UpdateLightState();
//
// // Log cực mạnh để bạn kiểm tra Console
// Debug.LogWarning($"<color=yellow>[Lamp]</color> Đèn đã chuyển sang: {(isOn ? "BẬT" : "TẮT")}");
// }
protected override void PerformInteraction(GameObject interactor)
{
isOn = !isOn;
UpdateLightState();
// Log cực mạnh để bạn kiểm tra Console
Debug.LogWarning($"<color=yellow>[Lamp]</color> Đèn đã chuyển sang: {(isOn ? "BẬT" : "TẮT")}");
}
private void UpdateLightState()
{