简单的PVP

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-21 01:57:40 +08:00
parent 1aa5900294
commit 074cfbd5bd
18 changed files with 3218 additions and 158 deletions

View File

@@ -5,12 +5,15 @@ import { JNFrameInfo } from "../../../extensions/ngame/assets/ngame/sync/frame/J
import { Node } from "cc";
import { Vec3 } from "cc";
import { Camera } from "cc";
import GBattleModeManager from "./GBattleModeManager";
export default class GBaseMode<T> extends GObject<T> {
export default class GBaseMode<T,DT> extends GObject<T> {
//场景相机
camera:Camera;
//模式数据
data:DT;
get scene():Node{
return this.node;
@@ -33,6 +36,11 @@ export default class GBaseMode<T> extends GObject<T> {
}
}
//结束场景
Close(){
GBattleModeManager.getIns().Close();
}
onSyncUpdate(dt: number,frame:JNFrameInfo, input?: T) {
//重置 场景中的层级