public void S_Vol_5() { Sound_Icon.GetComponent <Image>().sprite = Unmute_Sound; sound_volume = 5; s_vol_1.GetComponent <Image>().sprite = sound_vol_active; s_vol_2.GetComponent <Image>().sprite = sound_vol_active; s_vol_3.GetComponent <Image>().sprite = sound_vol_active; s_vol_4.GetComponent <Image>().sprite = sound_vol_active; s_vol_5.GetComponent <Image>().sprite = sound_vol_active; Save_Volumes(); }
public void Sound_Mute() { Sound_Icon.GetComponent <Image>().sprite = Mute_Sound; sound_volume = 0; s_vol_1.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_2.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_3.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_4.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_5.GetComponent <Image>().sprite = sound_vol_deactive; Save_Volumes(); }
public void Change_Volume_Settings() { if (music_volume == 0) { Music_Icon.GetComponent <Image>().sprite = Mute_Music; m_vol_1.GetComponent <Image>().sprite = music_vol_deactive; m_vol_2.GetComponent <Image>().sprite = music_vol_deactive; m_vol_3.GetComponent <Image>().sprite = music_vol_deactive; m_vol_4.GetComponent <Image>().sprite = music_vol_deactive; m_vol_5.GetComponent <Image>().sprite = music_vol_deactive; } if (music_volume == 1) { Music_Icon.GetComponent <Image>().sprite = Unmute_Music; m_vol_1.GetComponent <Image>().sprite = music_vol_active; m_vol_2.GetComponent <Image>().sprite = music_vol_deactive; m_vol_3.GetComponent <Image>().sprite = music_vol_deactive; m_vol_4.GetComponent <Image>().sprite = music_vol_deactive; m_vol_5.GetComponent <Image>().sprite = music_vol_deactive; } if (music_volume == 2) { Music_Icon.GetComponent <Image>().sprite = Unmute_Music; m_vol_1.GetComponent <Image>().sprite = music_vol_active; m_vol_2.GetComponent <Image>().sprite = music_vol_active; m_vol_3.GetComponent <Image>().sprite = music_vol_deactive; m_vol_4.GetComponent <Image>().sprite = music_vol_deactive; m_vol_5.GetComponent <Image>().sprite = music_vol_deactive; } if (music_volume == 3) { Music_Icon.GetComponent <Image>().sprite = Unmute_Music; m_vol_1.GetComponent <Image>().sprite = music_vol_active; m_vol_2.GetComponent <Image>().sprite = music_vol_active; m_vol_3.GetComponent <Image>().sprite = music_vol_active; m_vol_4.GetComponent <Image>().sprite = music_vol_deactive; m_vol_5.GetComponent <Image>().sprite = music_vol_deactive; } if (music_volume == 4) { Music_Icon.GetComponent <Image>().sprite = Unmute_Music; m_vol_1.GetComponent <Image>().sprite = music_vol_active; m_vol_2.GetComponent <Image>().sprite = music_vol_active; m_vol_3.GetComponent <Image>().sprite = music_vol_active; m_vol_4.GetComponent <Image>().sprite = music_vol_active; m_vol_5.GetComponent <Image>().sprite = music_vol_deactive; } if (music_volume == 5) { Music_Icon.GetComponent <Image>().sprite = Unmute_Music; m_vol_1.GetComponent <Image>().sprite = music_vol_active; m_vol_2.GetComponent <Image>().sprite = music_vol_active; m_vol_3.GetComponent <Image>().sprite = music_vol_active; m_vol_4.GetComponent <Image>().sprite = music_vol_active; m_vol_5.GetComponent <Image>().sprite = music_vol_active; } if (sound_volume == 0) { Sound_Icon.GetComponent <Image>().sprite = Mute_Sound; s_vol_1.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_2.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_3.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_4.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_5.GetComponent <Image>().sprite = sound_vol_deactive; } if (sound_volume == 1) { Sound_Icon.GetComponent <Image>().sprite = Unmute_Sound; s_vol_1.GetComponent <Image>().sprite = sound_vol_active; s_vol_2.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_3.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_4.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_5.GetComponent <Image>().sprite = sound_vol_deactive; } if (sound_volume == 2) { Sound_Icon.GetComponent <Image>().sprite = Unmute_Sound; s_vol_1.GetComponent <Image>().sprite = sound_vol_active; s_vol_2.GetComponent <Image>().sprite = sound_vol_active; s_vol_3.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_4.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_5.GetComponent <Image>().sprite = sound_vol_deactive; } if (sound_volume == 3) { Sound_Icon.GetComponent <Image>().sprite = Unmute_Sound; s_vol_1.GetComponent <Image>().sprite = sound_vol_active; s_vol_2.GetComponent <Image>().sprite = sound_vol_active; s_vol_3.GetComponent <Image>().sprite = sound_vol_active; s_vol_4.GetComponent <Image>().sprite = sound_vol_deactive; s_vol_5.GetComponent <Image>().sprite = sound_vol_deactive; } if (sound_volume == 4) { Sound_Icon.GetComponent <Image>().sprite = Unmute_Sound; s_vol_1.GetComponent <Image>().sprite = sound_vol_active; s_vol_2.GetComponent <Image>().sprite = sound_vol_active; s_vol_3.GetComponent <Image>().sprite = sound_vol_active; s_vol_4.GetComponent <Image>().sprite = sound_vol_active; s_vol_5.GetComponent <Image>().sprite = sound_vol_deactive; } if (sound_volume == 5) { Sound_Icon.GetComponent <Image>().sprite = Unmute_Sound; s_vol_1.GetComponent <Image>().sprite = sound_vol_active; s_vol_2.GetComponent <Image>().sprite = sound_vol_active; s_vol_3.GetComponent <Image>().sprite = sound_vol_active; s_vol_4.GetComponent <Image>().sprite = sound_vol_active; s_vol_5.GetComponent <Image>().sprite = sound_vol_active; } }