This commit is contained in:
PC-20230316NUNE\Administrator
2023-10-30 18:53:21 +08:00
parent bb4334c0ff
commit 64ab2b0fe5
20 changed files with 544 additions and 48 deletions

View File

@@ -3,6 +3,7 @@ import { app, JNGLayerBase } from '../../App';
import { director } from 'cc';
import GRolePVPEntity from '../../battle/base/role/PVP/GRolePVPEntity';
import { Toggle } from 'cc';
import { JNSyncAction } from '../../../../extensions/ngame/assets/ngame/sync/JNSyncAction';
const { ccclass, property } = _decorator;
@ccclass('HomeView')
@@ -34,9 +35,11 @@ export class HomeView extends JNGLayerBase {
//重置
onClickReset(){
app.sync.onReset();
this.scheduleOnce(() => {
app.sync.onStart();
});
}
//重置服务器帧
onClickResetServer(){
app.socket.Send(JNSyncAction.NSyncFrameReset);
}
}