예제 #1
0
    public void Toggle()
    {
        if (_toggleIndex < toggles.Length - 1)
        {
            _toggleIndex++;
        }
        else
        {
            _toggleIndex = 0;
        }

        currentState      = toggles[_toggleIndex];
        propertyText.text = properties[_toggleIndex];

        PlayerPrefs.SetInt(propertyName, _toggleIndex);

        settingsController.Apply();
    }