mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交新模式
This commit is contained in:
@@ -142,13 +142,19 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
let vWorld = this.node.worldPosition;
|
||||
let vEndWorld = this.getWorldBackLen(v2(1500,500));
|
||||
this.JTween(vWorld)
|
||||
.to({x:vEndWorld.x},1000)
|
||||
.onUpdate(pos => this.node.worldPosition = pos)
|
||||
.to({x:vEndWorld.x},1200)
|
||||
.onUpdate(pos => {
|
||||
if(this.node.isValid)
|
||||
this.node.worldPosition = pos;
|
||||
})
|
||||
.start();
|
||||
this.JTween(vWorld)
|
||||
.to({y:vEndWorld.y},1000)
|
||||
.to({y:vEndWorld.y},1200)
|
||||
.easing(JEasing.Circular.Out)
|
||||
.onUpdate(pos => this.node.worldPosition = vWorld)
|
||||
.onUpdate(pos => {
|
||||
if(this.node.isValid)
|
||||
this.node.worldPosition = vWorld
|
||||
})
|
||||
.start();
|
||||
|
||||
}
|
||||
@@ -208,7 +214,7 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
return false;
|
||||
}
|
||||
|
||||
onQueryEunmy():GRoleDefault{
|
||||
onQueryEunmy():GRoleBase<{}>{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user