Creating 'menu toggle' class
Need to create a multi-purpose 'menu-toggle class. Very simply this class holds a collection of objects and when one of these objects is 'selected' it becomes activated and deactivates the other objects in the collection become 'de-activated'. The game I'm creating has several levels or scenes. Each scene needs its own menu independent of the other scenes or levels.
So I know I need a dictionary to hold the objects and create the collection. Beyond that need some feedback. What would be the most efficient way of adding objects to, activating and deactivating these collection objects, assuming they are activated on mouse press?
Your answer
![](https://koobas.hobune.stream/wayback/20220613032100im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity UI Prevent Layout component Update 0 Answers
Add custom objects using the hierarchy 0 Answers
Classic window menuin Unity? 1 Answer
how to add custom menu item in hierarchy pop menu? 0 Answers
Dropdown content out of bounds 1 Answer