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