mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-07 23:06:03 +00:00
update
This commit is contained in:
@@ -242,13 +242,13 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
if(this.nId == 1)
|
||||
console.log("onFly");
|
||||
let vWorld = this.node.worldPosition;
|
||||
let vEndWorld = this.getWorldBackLen(v2(1000,500));
|
||||
let vEndWorld = this.getWorldBackLen(v2(1500,500));
|
||||
this.JTween(vWorld)
|
||||
.to({x:vEndWorld.x},800)
|
||||
.to({x:vEndWorld.x},1000)
|
||||
.onUpdate(pos => this.node.worldPosition = pos)
|
||||
.start();
|
||||
this.JTween(vWorld)
|
||||
.to({y:vEndWorld.y},800)
|
||||
.to({y:vEndWorld.y},1000)
|
||||
.easing(JEasing.Circular.Out)
|
||||
.onUpdate(pos => this.node.worldPosition = vWorld)
|
||||
.start();
|
||||
|
||||
Reference in New Issue
Block a user