update
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user