TongdunM.ts 695 B

123456789101112131415161718192021222324252627282930313233
  1. import JsbSystem from "../../system/JsbSystem";
  2. /** 同盾管理类 */
  3. const { ccclass } = cc._decorator;
  4. @ccclass
  5. export default class TongdunM {
  6. private ifInitTongdunM: boolean = false;
  7. public tdEquipID;
  8. public hasGot = false;
  9. public init() {
  10. if (this.ifInitTongdunM) {
  11. return;
  12. }
  13. else {
  14. this.ifInitTongdunM = true;
  15. if (gData.storageData.ifIsBlock()) {
  16. return
  17. }
  18. JsbSystem.tongdunInit();
  19. }
  20. }
  21. public setTDEquipID(equipID) {
  22. this.tdEquipID = equipID;
  23. this.hasGot = true;
  24. }
  25. }
  26. window['TongdunM'] = TongdunM