Exemplo n.º 1
0
    private void UpdateSoundBtnUI()
    {
        bool on = sm.WorldVolume.GetFactor(volume_id) == 1;

        bool arrows = ButtonEffects.HasArrows(sound_text.text);

        sound_text.text = "Sound " + (on ? "On" : "Off");
        if (arrows)
        {
            sound_text.text = ButtonEffects.AddArrows(sound_text.text);
        }
    }
Exemplo n.º 2
0
    private void UpdateMusicBtnUI()
    {
        bool on = sm.MusicVolume.GetFactor(volume_id) == 1;

        bool arrows = ButtonEffects.HasArrows(music_text.text);

        music_text.text = "Music " + (on ? "On" : "Off");
        if (arrows)
        {
            music_text.text = ButtonEffects.AddArrows(music_text.text);
        }
    }