mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-05-02 12:31:10 +08:00
fix: 停止移动时同时停止跟随者
This commit is contained in:
parent
5c44d140a8
commit
3917b29510
@ -298,16 +298,11 @@ export class MapHeroRenderer implements IMapHeroRenderer {
|
|||||||
this.entities.forEach(v => this.endEntityMoving(v));
|
this.entities.forEach(v => this.endEntityMoving(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
stopMove(stopFollower: boolean): void {
|
stopMove(): void {
|
||||||
if (stopFollower) {
|
|
||||||
this.entities.forEach(v => {
|
this.entities.forEach(v => {
|
||||||
v.block.endMoving();
|
v.block.endMoving();
|
||||||
this.endEntityMoving(v);
|
this.endEntityMoving(v);
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.heroEntity.block.endMoving();
|
|
||||||
this.endEntityMoving(this.heroEntity);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async move(direction: FaceDirection, time: number): Promise<void> {
|
async move(direction: FaceDirection, time: number): Promise<void> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user