You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
579 B
19 lines
579 B
import Common5 from "../../Platform/th/Common5";
|
|
|
|
export default class GameBaseScript {
|
|
|
|
public static preLoadRemoteAudio(soundConfig) {
|
|
Object.keys(soundConfig).forEach((key) => {
|
|
let tab = soundConfig[key]
|
|
for (let i = 0; i < tab.length; i++) {
|
|
Common5.preloadRemoteAudio(tab[i].effectUrl)
|
|
}
|
|
});
|
|
}
|
|
|
|
public static preLoadRemoteAudioByChatConfig(soundConfig) {
|
|
for (let i = 0; i < soundConfig.length; i++) {
|
|
Common5.preloadRemoteAudio(soundConfig[i].effectUrl)
|
|
}
|
|
}
|
|
}
|
|
|