mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
update
This commit is contained in:
@@ -2,13 +2,14 @@ import { _decorator } from "cc";
|
||||
import GRoleBase from "../GRoleBase";
|
||||
import GFSMBase from "../../fsm/GFSMBase";
|
||||
import GFSMPVP from "../../fsm/PVP/GFSMPVP";
|
||||
import GPVPMode, { GPVPModePlayerEnum } from "../../../PVP/GPVPMode";
|
||||
import GPVPMode, { GPVPModePlayerEnum } from "../../../modes/GPVPMode";
|
||||
import { GTactical } from "../../../entity/GTactical";
|
||||
import { GFSMBattleAmin } from "../../fsm/base/GFSMBattle/GFSMBattleAmin";
|
||||
import { JNFrameInfo } from "../../../../../../extensions/ngame/assets/ngame/sync/frame/JNSyncFrame";
|
||||
import { Vec2 } from "cc";
|
||||
import { v2 } from "cc";
|
||||
import { ProgressBar } from "cc";
|
||||
import { GTowards } from "../../GObject";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
export interface GDemoMessage{
|
||||
@@ -26,12 +27,6 @@ export default class GRolePVPEntity extends GRoleBase<GDemoMessage>{
|
||||
return this._ones;
|
||||
}
|
||||
set ones(value:GPVPModePlayerEnum){
|
||||
//如果是敌方则设置镜像
|
||||
if(value == GPVPModePlayerEnum.ENEMY){
|
||||
this.isMirror = true;
|
||||
}else{
|
||||
this.isMirror = false;
|
||||
}
|
||||
this._ones = value;
|
||||
}
|
||||
|
||||
@@ -66,6 +61,7 @@ export default class GRolePVPEntity extends GRoleBase<GDemoMessage>{
|
||||
this._mode = value;
|
||||
}
|
||||
|
||||
|
||||
protected fsmCreate(): GFSMPVP {
|
||||
return new GFSMPVP(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user