mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
18 lines
349 B
TypeScript
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}`;
|
|
}
|
|
|
|
}
|
|
|
|
|