You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
24 lines
528 B
C#
24 lines
528 B
C#
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);
|
|
}
|
|
}
|