Array Structure:
The X axis holds object UIDs (unique identifiers).
The Y axis holds boolean values (0 or 1) to indicate whether an object is selected (1 for selected, 0 for not selected).
2. On Object Click:
When an object is clicked, toggle its boolean state (0 to 1, or 1 to 0) in the array.
Then, loop through the array and untoggle (set to 0) every other object, excluding the one that was clicked.
3. Event Structure:
1. On Click Event:
Use the On clicked condition to detect the object that was clicked.
Get the UID of the clicked object.
2. Toggle Clicked Object:
Find the clicked object's UID in the array and toggle its boolean value.
This will toggle between 1 (selected) and 0 (unselected).
3. Untoggle Other Objects:
Use a loop to iterate through the array and untoggle every other object by setting their boolean value to 0, excluding the clicked object.