This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-09 04:22:04 +08:00
parent 487219e6aa
commit ebf99de47a
34 changed files with 974 additions and 32 deletions

View File

@@ -6,6 +6,7 @@ import { director } from 'cc';
import { WorldCanvas } from '../../WorldCanvas';
import { StorageData, StorageEnum } from '../../consts/GData';
import { GUI } from '../UIConfig';
import { API } from '../../consts/API';
const { ccclass, property } = _decorator;
@ccclass('HomeView')
@@ -14,6 +15,10 @@ export class HomeView extends JNGLayerBase {
@property(Label)
frameText:Label;
async onLoad(){
app.layer.Open(GUI.Tips,{text:(await API.GetPlayerInfo()).msg});
}
update(){
this.frameText.string = `当前帧数: ${app.sync.frame}`;
}