mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-07 23:06:03 +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();
|
||||
|
||||
Reference in New Issue
Block a user