mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Fixed an error that stopped 2 tweens from being able to run on the same object. Also refactored a lot of the classes to remove prototype properties and move them to local instance properties.
This commit is contained in:
+15
-18
@@ -7,29 +7,26 @@ Phaser.SoundManager = function (game) {
|
||||
this.game = game;
|
||||
|
||||
this.onSoundDecode = new Phaser.Signal;
|
||||
|
||||
this._muted = false;
|
||||
this._unlockSource = null;
|
||||
this._volume = 1;
|
||||
this._muted = false;
|
||||
this._sounds = [];
|
||||
|
||||
this.context = null;
|
||||
this.usingWebAudio = true;
|
||||
this.usingAudioTag = false;
|
||||
this.noAudio = false;
|
||||
|
||||
this.touchLocked = false;
|
||||
|
||||
this.channels = 32;
|
||||
|
||||
};
|
||||
|
||||
Phaser.SoundManager.prototype = {
|
||||
|
||||
game: null,
|
||||
|
||||
_muted: false,
|
||||
_unlockSource: null,
|
||||
_volume: 1,
|
||||
_muted: false,
|
||||
_sounds: [],
|
||||
|
||||
context: null,
|
||||
usingWebAudio: true,
|
||||
usingAudioTag: false,
|
||||
noAudio: false,
|
||||
|
||||
touchLocked: false,
|
||||
onSoundDecode: null,
|
||||
|
||||
channels: 32,
|
||||
|
||||
boot: function () {
|
||||
|
||||
if (this.game.device.iOS && this.game.device.webAudio == false)
|
||||
|
||||
Reference in New Issue
Block a user