fix: unused int in RegisterAllButtons function

This commit is contained in:
Antoine Papillon
2026-03-13 10:58:51 +01:00
parent 44d3ef02a3
commit ceb4c54b9d

View File

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