| 123456789101112131415161718192021222324252627282930313233 |
- import JsbSystem from "../../system/JsbSystem";
- /** 同盾管理类 */
- const { ccclass } = cc._decorator;
- @ccclass
- export default class TongdunM {
- private ifInitTongdunM: boolean = false;
- public tdEquipID;
- public hasGot = false;
- public init() {
- if (this.ifInitTongdunM) {
- return;
- }
- else {
- this.ifInitTongdunM = true;
- if (gData.storageData.ifIsBlock()) {
- return
- }
- JsbSystem.tongdunInit();
- }
- }
- public setTDEquipID(equipID) {
- this.tdEquipID = equipID;
- this.hasGot = true;
- }
- }
- window['TongdunM'] = TongdunM
|