AudioMgr.ts 749 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Learn TypeScript:
  2. // - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
  3. // Learn Attribute:
  4. // - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
  5. // Learn life-cycle callbacks:
  6. // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
  7. import LocalData from "./LocalData";
  8. const {ccclass, property} = cc._decorator;
  9. @ccclass
  10. export default class AudioMgr
  11. {
  12. public static sounds:any={};
  13. public static playSound(name)
  14. {
  15. }
  16. private static bgm_name="";
  17. public static playBgm()
  18. {
  19. if(LocalData.yy==false)
  20. {
  21. return;
  22. }
  23. }
  24. public static stopBgm()
  25. {
  26. }
  27. }