mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +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);
|
this.scale = new ScaleManager(this, this.config);
|
||||||
|
|
||||||
if (typeof FEATURE_SOUND)
|
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* An instance of the base Sound Manager.
|
* 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.
|
* 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
|
* @name Phaser.Game#sound
|
||||||
* @type {Phaser.Sound.BaseSoundManager}
|
* @type {Phaser.Sound.BaseSoundManager}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
|
this.sound = null;
|
||||||
|
|
||||||
|
if (typeof FEATURE_SOUND)
|
||||||
|
{
|
||||||
this.sound = SoundManagerCreator.create(this);
|
this.sound = SoundManagerCreator.create(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue