14 lines
378 B
14 lines
378 B
3 months ago
|
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)
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|