mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Keep the property but set to null
by default.
This commit is contained in:
parent
61921525f1
commit
a47019b415
1 changed files with 13 additions and 9 deletions
|
@ -240,17 +240,21 @@ var Game = new Class({
|
|||
*/
|
||||
this.scale = new ScaleManager(this, this.config);
|
||||
|
||||
/**
|
||||
* An instance of the base Sound Manager.
|
||||
*
|
||||
* The Sound Manager is a global system responsible for the playback and updating of all audio in your game.
|
||||
*
|
||||
* You can disable the inclusion of the Sound Manager in your build by toggling the webpack `FEATURE_SOUND` flag.
|
||||
*
|
||||
* @name Phaser.Game#sound
|
||||
* @type {Phaser.Sound.BaseSoundManager}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.sound = null;
|
||||
|
||||
if (typeof FEATURE_SOUND)
|
||||
{
|
||||
/**
|
||||
* An instance of the base Sound Manager.
|
||||
*
|
||||
* The Sound Manager is a global system responsible for the playback and updating of all audio in your game.
|
||||
*
|
||||
* @name Phaser.Game#sound
|
||||
* @type {Phaser.Sound.BaseSoundManager}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.sound = SoundManagerCreator.create(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue