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) { } }