BindGameM.ts 525 B

1234567891011121314151617181920
  1. import { TipsLayer } from "../../prefab/layer/TipsLayer";
  2. import Utils from "../utils/Utils";
  3. export class BindGameM {
  4. private static _ins: BindGameM = null;
  5. public static get ins(): BindGameM {
  6. if (BindGameM._ins == null) {
  7. BindGameM._ins = new BindGameM();
  8. }
  9. return BindGameM._ins;
  10. }
  11. check() {
  12. let pvzCode = Utils.getQueryString("pvzCode");
  13. if (pvzCode && pvzCode.length > 0) {
  14. console.warn("pvzCode", pvzCode);
  15. TipsLayer.showConfirm("", "bind code:" + pvzCode);
  16. }
  17. }
  18. }