mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-02-28 20:43:03 +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));
|
||||
}
|
||||
|
||||
stopMove(stopFollower: boolean): void {
|
||||
if (stopFollower) {
|
||||
this.entities.forEach(v => {
|
||||
v.block.endMoving();
|
||||
this.endEntityMoving(v);
|
||||
});
|
||||
} else {
|
||||
this.heroEntity.block.endMoving();
|
||||
this.endEntityMoving(this.heroEntity);
|
||||
}
|
||||
stopMove(): void {
|
||||
this.entities.forEach(v => {
|
||||
v.block.endMoving();
|
||||
this.endEntityMoving(v);
|
||||
});
|
||||
}
|
||||
|
||||
async move(direction: FaceDirection, time: number): Promise<void> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user