mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
@@ -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();
|
||||
|
@@ -71,7 +71,7 @@ export default class GRolePVPEntity extends GRoleBase<GDemoMessage>{
|
||||
if(this.isDie){
|
||||
//销毁数据
|
||||
this.mode.killRole(this);
|
||||
this.node.removeFromParent();
|
||||
// this.node.removeFromParent();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user