{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { GameTools } from \"../Tool/GameTools\";\r\nexport default class MainView extends ui.MainSceneUI {\r\n    constructor() {\r\n        super();\r\n        Laya.stage.addChild(this);\r\n    }\r\n    onAwake() {\r\n        this.SkillAnimation();\r\n        this.arrowbtn.clickHandler = new Laya.Handler(this, this.ClickArrow);\r\n        this.zhunxin1btn.clickHandler = new Laya.Handler(this, this.ClickZhunXin1);\r\n        this.zhunxin2btn.clickHandler = new Laya.Handler(this, this.ClickZhunXin2);\r\n        this.doublebtn.clickHandler = new Laya.Handler(this, this.ClickDouble);\r\n        this.hammerbtn.clickHandler = new Laya.Handler(this, this.ClickHammer);\r\n        this.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n        });\r\n    }\r\n    SkillAnimation() {\r\n        Laya.timer.frameLoop(500, this, () => {\r\n            let random = GameTools.RandomANumber(1, 6);\r\n            switch (random) {\r\n                case 1:\r\n                    this.ani1.play(null, false);\r\n                    break;\r\n                case 2:\r\n                    this.ani2.play(null, false);\r\n                    break;\r\n                case 3:\r\n                    this.ani3.play(null, false);\r\n                    break;\r\n                case 4:\r\n                    this.ani4.play(null, false);\r\n                    break;\r\n                case 5:\r\n                    this.ani5.play(null, false);\r\n                    break;\r\n            }\r\n        });\r\n    }\r\n    ClickArrow() {\r\n        let num = this.arrowbtn.getChildByName(\"num\");\r\n        if (Number(num.text) > 0) {\r\n        }\r\n    }\r\n    ClickDouble() {\r\n        let num = this.doublebtn.getChildByName(\"num\");\r\n        if (Number(num.text) > 0) {\r\n        }\r\n    }\r\n    ClickZhunXin1() {\r\n        let num = this.zhunxin1btn.getChildByName(\"num\");\r\n        if (Number(num.text) > 0) {\r\n        }\r\n    }\r\n    ClickZhunXin2() {\r\n        let num = this.zhunxin2btn.getChildByName(\"num\");\r\n        if (Number(num.text) > 0) {\r\n        }\r\n    }\r\n    ClickHammer() {\r\n        let num = this.hammerbtn.getChildByName(\"num\");\r\n        if (Number(num.text) > 0) {\r\n        }\r\n    }\r\n}\r\n",
  "references": [
    "E:/LayaProject/BlastToMerge/src/ui/layaMaxUI.ts",
    "E:/LayaProject/BlastToMerge/src/Tool/GameTools.ts"
  ]
}
