squidGame/tgx-games-client/assets/module_arean/level2/Script/RopeGame.ts

22 lines
445 B
TypeScript

import { _decorator, Component, Node, Animation } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('GameManager')
export class GameManager extends Component {
@property({type: Animation})
cameraAnim: Animation = null!;
start() {
// 游戏开始时播放相机动画
if (this.cameraAnim) {
this.cameraAnim.play('camera1');
}
}
update(deltaTime: number) {
}
}