feat: group 1.0.0

This commit is contained in:
zzc
2026-05-12 06:46:31 +08:00
parent 493b4709bc
commit 2fc90c1219
55 changed files with 23561 additions and 1767 deletions

View File

@@ -1,7 +1,17 @@
import { _decorator, Component, Node, tween, UITransform, Vec3 } from "cc";
import {
_decorator,
Color,
Component,
Node,
Sprite,
tween,
UITransform,
Vec3,
} from "cc";
import { EventDispatcher } from "../libs/EventDispatcher";
import { GlobalData } from "../config/GlobalData";
import { GameState } from "../config/Config";
import Common from "../libs/Common";
const { ccclass, property } = _decorator;
@ccclass("ContonueModal")
@@ -37,6 +47,8 @@ export class ContonueModal extends Component {
showModal() {
// 游戏暂停
GlobalData.gameState = GameState.PAUSED;
// 设置 页面 背景色
Common.setPageBackgroundColorAsDino(this.node);
// 显示继续游戏弹窗
this.node.active = true;
// 操作提示动画
@@ -76,6 +88,11 @@ export class ContonueModal extends Component {
// 播放提示1的动画
playTipAnimation(tNode: Node) {
// 设置小恐龙颜色
tNode.getChildByName("dino").getComponent(Sprite).color = new Color(
GlobalData.currentDinoInfo.dinoColor,
);
// 显示提示1
tNode.active = true;
// 获取提示节点的位置