Commit 01475623 authored by Friends233's avatar Friends233

fix出钩时禁止再次出钩

parent 5f7dcabf
......@@ -60,6 +60,9 @@ export default class GameScene extends cc.Component {
clip: cc.Node = null
/** 爪子是否执行动画中 */
clipAni = false
/** 爪子状态 */
clipState = CLIP_STATE.STOP
......@@ -258,11 +261,14 @@ export default class GameScene extends cc.Component {
}
this.clipTarget.getComponent('propMove').die(() => {
this.clipTarget = null
this.clipAni = false
// 场面上没有剩余加分道具,刷新道具舞台
if (this.surplusStar == 0) {
this.refreshStageProps()
}
})
}else {
this.clipAni = false
}
break;
case CLIP_STATE.PLAY:
......@@ -270,6 +276,7 @@ export default class GameScene extends cc.Component {
ani.pause()
this.clip.active = true
def.active = false
this.clipAni = true
// 播放爪子动效
clip.play(state)
break;
......@@ -283,7 +290,7 @@ export default class GameScene extends cc.Component {
/** 出钩 */
playGame() {
if (this.isGameOver || !this.isStartGame) return
if (this.isGameOver || !this.isStartGame || this.clipAni) return
this.setClipState(CLIP_STATE.PLAY)
}
......
This diff is collapsed.
......@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>-->
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681800855882/style-mobile.css"/>
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681801455800/style-mobile.css"/>
<style>
......@@ -90,9 +90,9 @@
</div>
</div>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681800855882/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681801455800/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681800855882/main.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681801455800/main.js" charset="utf-8"></script>
<script type="text/javascript">
(function () {
......
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681800855882/";
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681801455800/";
window.__remoteAssets__ = window.__remoteUrl__ + "assets/";
window.__version__ = 1681800855882;
window.__version__ = 1681801455800;
window.__ENV__ = "prod";
window.boot = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment