mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
@@ -79,6 +79,8 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
this.node.removeFromParent();
|
||||
return;
|
||||
}
|
||||
|
||||
this.spine.debugBones = true;
|
||||
|
||||
this.bind(this.role);
|
||||
|
||||
|
@@ -1,15 +1,10 @@
|
||||
import { _decorator } from "cc";
|
||||
import GRoleBase from "../GRoleBase";
|
||||
import GFSMBase from "../../fsm/GFSMBase";
|
||||
import GFSMPVP from "../../fsm/PVP/GFSMPVP";
|
||||
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{
|
||||
@@ -40,6 +35,7 @@ export default class GRolePVPEntity extends GRoleBase<GDemoMessage>{
|
||||
getClassName():string{return "GDemoMessage"}
|
||||
onSyncUpdate(dt: number,frame:JNFrameInfo, input?: GDemoMessage) {
|
||||
super.onSyncUpdate(dt,frame,input);
|
||||
|
||||
if(input){
|
||||
if(Object.prototype.hasOwnProperty.call(input,"isAttack")){
|
||||
this.fsmAnim.isAttack = input.isAttack;
|
||||
|
Reference in New Issue
Block a user