fix: unused int in RegisterAllButtons function
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user