|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-20 15:01:09
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-17 15:58:53
|
|
|
+ * @LastEditTime: 2025-04-17 16:14:26
|
|
|
* @Description: 消除游戏主场景
|
|
|
*/
|
|
|
import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
|
|
|
@@ -149,9 +149,9 @@ export class EliminateViewComp extends CCComp {
|
|
|
private callback: Function | null = null; //回调函数
|
|
|
|
|
|
//tween时间控制变量
|
|
|
- private autoMoveTime: number = 0.4;
|
|
|
-
|
|
|
-
|
|
|
+ private autoMoveTime: number = 0.4; //自动移动时间
|
|
|
+ //再次自动放置间隔时间
|
|
|
+ private autoPlaceInterval: number = 0.4;
|
|
|
|
|
|
//没使用颜色
|
|
|
notUseColor = new Color(255, 255, 255, 255)
|
|
|
@@ -1940,9 +1940,9 @@ export class EliminateViewComp extends CCComp {
|
|
|
this.gameOver()
|
|
|
} else if (this.autoState) {
|
|
|
// 继续自动放置
|
|
|
- // this.scheduleOnce(() => {
|
|
|
- // this.executeAutoPlace()
|
|
|
- // }, 0.3)
|
|
|
+ this.scheduleOnce(() => {
|
|
|
+ this.executeAutoPlace()
|
|
|
+ }, this.autoPlaceInterval)
|
|
|
}
|
|
|
})
|
|
|
})
|