PC-20230316NUNE\Administrator 77d44ee300 update
2023-10-23 18:56:01 +08:00

18 lines
349 B
TypeScript

import { _decorator, Component, Label, Node } from 'cc';
import { app, JNGLayerBase } from '../../App';
const { ccclass, property } = _decorator;
@ccclass('HomeView')
export class HomeView extends JNGLayerBase {
@property(Label)
frameText:Label;
update(){
this.frameText.string = `当前帧数: ${app.sync.frame}`;
}
}