fix/dev-room #5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user