fix/dev-room #5

Merged
Antoine2507 merged 31 commits from fix/dev-room into Prototype 2026-03-17 10:49:58 +01:00
Showing only changes of commit ceb4c54b9d - Show all commits

View File

@@ -55,8 +55,7 @@ public class ButtonSequenceDoorPuzzle : MonoBehaviour
if (button == null) if (button == null)
continue; continue;
int buttonIndex = i; UnityAction action = () => OnButtonPressed(i);
UnityAction action = () => OnButtonPressed(buttonIndex);
m_cachedListeners[i] = action; m_cachedListeners[i] = action;
button.OnInteract.AddListener(action); button.OnInteract.AddListener(action);
} }