예제 #1
0
    public void Toggle()
    {
        List <string> languages = _locMan.GetCapabilities();
        int           index     = (languages.IndexOf(_locMan.currentLocalization) + 1) % languages.Count;

        _locMan.currentLocalization = languages[index];
        buttonText.text             = _locMan.currentLocalizationDecorator;
    }