A class in Root.Township, Alta.QuickAccessActions.
Pooled settings control on a quick access settings board, wrapping a MenuGameSetting and an optional pickup.
Constructors
| Member | What it is |
|---|
PooledMenuSettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private MenuGameSetting menuGameSetting | The setting control. |
private Pickup pickup | Optional pickup on the control, dropped on release. |
Methods
| Member | What it is |
|---|
override void Release() | Force drops the pickup and returns the control to its pool. |
void SetSettings(SettingsFieldAccess setting) | Points the control at a setting. |
1 private and internal method
| Member | What it is |
|---|
private void Awake() | Marks the pickup's entity as initialised, so it works without the network. |