mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
17
JisolGameCocos/assets/script/ui/Home/HomeView.ts
Normal file
17
JisolGameCocos/assets/script/ui/Home/HomeView.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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}`;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
9
JisolGameCocos/assets/script/ui/Home/HomeView.ts.meta
Normal file
9
JisolGameCocos/assets/script/ui/Home/HomeView.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "15051ada-4206-4de8-9e48-0a063639f492",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user