mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user