using Demonics.UI; using UnityEngine; public class ControlsMenu : BaseMenu { [SerializeField] private GameObject[] _controlSchemes = default; private int _currentControlSchemeIndex; public void ToggleControlsScheme() { _currentControlSchemeIndex++; if (_currentControlSchemeIndex >= _controlSchemes.Length) { _currentControlSchemeIndex = 0; } for (int i = 0; i < _controlSchemes.Length; i++) { _controlSchemes[i].SetActive(false); } _controlSchemes[_currentControlSchemeIndex].SetActive(true); } }