bondsdk.ts 662 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { _decorator } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('Bondsdk')
  4. export class Bondsdk {
  5. /**
  6. * 输出
  7. * @param tex
  8. */
  9. public static log(tex: String) {
  10. console.log('[Bondsdk] ' + tex);
  11. }
  12. /**
  13. * 输出
  14. * @param tex
  15. */
  16. public static error(tex: String) {
  17. console.error('[Bondsdk] ' + tex);
  18. }
  19. /**
  20. * 初始化
  21. */
  22. public static init() {
  23. Bondsdk.log('initsdk-xu');
  24. }
  25. /**
  26. * 显示激励视频
  27. * @param cb
  28. */
  29. public static showRewardVideo(cb: any) {
  30. Bondsdk.log('showRewardVideo');
  31. cb && cb();
  32. }
  33. }