更新无限地图

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-03 02:57:38 +08:00
parent 996b0ecfac
commit ca5fa0cc92
504 changed files with 2213 additions and 359 deletions

View File

@@ -2,6 +2,8 @@ import { _decorator, Component, Label, Node } from 'cc';
import { app, JNGLayerBase } from '../../App';
import { Toggle } from 'cc';
import { JNSyncAction } from '../../../../extensions/ngame/assets/ngame/sync/JNSyncAction';
import { director } from 'cc';
import { WorldCanvas } from '../../WorldCanvas';
const { ccclass, property } = _decorator;
@ccclass('HomeView')
@@ -34,6 +36,15 @@ export class HomeView extends JNGLayerBase {
app.socket.Send(JNSyncAction.NSyncFrameReset);
}
//前往PVP
onClickGoPVP(){
director.getScene().getComponentInChildren(WorldCanvas).index = 0;
}
//前往无尽
onClickGoOnHook(){
director.getScene().getComponentInChildren(WorldCanvas).index = 1;
}
}