popravki
This commit is contained in:
@@ -47,8 +47,10 @@ class CollectionSystem {
|
||||
color: '#FFD700'
|
||||
});
|
||||
|
||||
if (this.scene.soundManager) {
|
||||
this.scene.soundManager.playSuccess(); // Reuse success sound
|
||||
if (this.scene.soundManager && typeof this.scene.soundManager.playSuccess === 'function') {
|
||||
this.scene.soundManager.playSuccess();
|
||||
} else if (this.scene.soundManager && typeof this.scene.soundManager.playHarvest === 'function') {
|
||||
this.scene.soundManager.playHarvest(); // Fallback to harvest sound
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user