This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-10-28 02:51:05 +08:00
parent c4e6d02388
commit 324736a619
7 changed files with 34 additions and 13 deletions

View File

@@ -170,12 +170,12 @@ export default abstract class GRoleBase<T> extends GObject<T>{
console.log("onFly");
let vWorld = this.node.worldPosition;
let vEndWorld = this.getWorldBackLen(v2(800,500));
JTween(vWorld)
.to({x:vEndWorld.x},500)
this.JTween(vWorld)
.to({x:vEndWorld.x},600)
.onUpdate(pos => this.node.worldPosition = vWorld)
.start();
JTween(vWorld)
.to({y:vEndWorld.y},500)
this.JTween(vWorld)
.to({y:vEndWorld.y},600)
.easing(JEasing.Circular.Out)
.onUpdate(pos => this.node.worldPosition = vWorld)
.start();

View File

@@ -71,7 +71,7 @@ export default class GRolePVPEntity extends GRoleBase<GDemoMessage>{
if(this.isDie){
//销毁数据
this.mode.killRole(this);
this.node.removeFromParent();
// this.node.removeFromParent();
}
}