private void initMusic() { music = AssetsLoader.getMusic(); boolean musicOn = preferences.getBoolean("musicOn", true); float musicVolume = preferences.getFloat("musicVolume", 1); music.setLooping(true); if (musicOn) { music.play(); } music.setVolume(musicVolume); }
private void initPreferences() { preferences = AssetsLoader.getPreferences(); }