mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Vec2 } from "cc";
|
||||
import GDefaultMode from "./default/GDefaultMode";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
import { TB } from "../../config/data/schema";
|
||||
import GRoleDefault from "../base/role/GRoleDefault";
|
||||
import { _decorator } from "cc";
|
||||
import GBaseMode from "../GBaseMode";
|
||||
@@ -12,6 +12,7 @@ import { GTowards } from "../base/GObject";
|
||||
import GRoleBase from "../base/role/GRoleBase";
|
||||
import { GTactical } from "../entity/GTactical";
|
||||
import JNFrameTime from "../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
import { TbGPetId } from "../../config/TbGPet";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
//阵营守护 角色
|
||||
@@ -55,7 +56,10 @@ export default class GCampGuardianMode extends GBaseMode<{},{}>{
|
||||
|
||||
//定时器生成
|
||||
JNFrameTime.getInstance().setInterval(() => {
|
||||
// this.onGenRole(GCampGuardianEnum.PLAYER,TD.TbGRole.get());
|
||||
this.onGenRole(GCampGuardianEnum.PLAYER,TD.TbGRole.get(TbGPetId.坚强小石));
|
||||
this.onGenRole(GCampGuardianEnum.PLAYER,TD.TbGRole.get(TbGPetId.坚强小石));
|
||||
this.onGenRole(GCampGuardianEnum.PLAYER,TD.TbGRole.get(TbGPetId.坚强小石));
|
||||
this.onGenRole(GCampGuardianEnum.ENEMY,TD.TbGRole.get(TbGPetId.雷吉艾斯));
|
||||
},1000)
|
||||
|
||||
}
|
||||
@@ -65,7 +69,7 @@ export default class GCampGuardianMode extends GBaseMode<{},{}>{
|
||||
|
||||
let crystalNode = instantiate(this.crystalPrefab);
|
||||
let crystal = crystalNode.getComponent(GRoleCGCrystal);
|
||||
crystal.init(TD.TbGRole.get(10005));
|
||||
crystal.init(TD.TbGRole.get(TbGPetId.雷吉艾斯));
|
||||
|
||||
switch(type){
|
||||
case GCampGuardianEnum.PLAYER:
|
||||
|
@@ -15,7 +15,7 @@ import { TD, app } from "../../App";
|
||||
import { v3 } from "cc";
|
||||
import { v2 } from "cc";
|
||||
import GFSMOnHookMode from "./OnHook/GFSMOnHookMode";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
import { TB } from "../../config/data/schema";
|
||||
import PlayerTacticalData, { PlayerTacticalEvent } from "../../data/PlayerTacticalData";
|
||||
import GRoleOnHookPlayerExpand from "../base/role/expand/OnHook/GRoleOnHookPlayerExpand";
|
||||
import PlayerPetData from "../../data/PlayerPetData";
|
||||
|
@@ -7,7 +7,7 @@ import { Vec2 } from "cc";
|
||||
import { GRoleUtil } from "../entity/GRole";
|
||||
import GRoleDefault from "../base/role/GRoleDefault";
|
||||
import { v3 } from "cc";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
import { TB } from "../../config/data/schema";
|
||||
import JNFrameTime from "../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
import GBattleModeManager from "../GBattleModeManager";
|
||||
import { app, TD } from "../../App";
|
||||
|
@@ -2,7 +2,7 @@ import { _decorator } from "cc";
|
||||
import GBaseMode from "../../GBaseMode";
|
||||
import { GMapLoop } from "../../base/common/map/GMapLoop";
|
||||
import { TD, app } from "../../../App";
|
||||
import { TB } from "../../../../resources/config/data/schema";
|
||||
import { TB } from "../../../config/data/schema";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
export default class GDefaultMode<T,DT> extends GBaseMode<T,DT>{
|
||||
|
Reference in New Issue
Block a user