-
-
Save Gazer/1ae044ff0a6ec9e2bbea9285b2a8e2d1 to your computer and use it in GitHub Desktop.
factory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public SoundMananger getSoundMananger() { | |
if (GeneralUtils.isSoundEnabled()) { | |
return new LoudSoundMananger(); | |
} else { | |
return new SilentSoundManager(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment