fix: sync the prototype

This commit is contained in:
Pierre Ryssen
2026-03-30 18:01:33 +02:00
parent 175162fccf
commit fcb0f813dd
19 changed files with 156845 additions and 14766 deletions

View File

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