walk on dbl click
This commit is contained in:
parent
08816ae80f
commit
55bb6fa930
@ -27,7 +27,12 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.lastTime > 0 && pointer.time - this.lastTime < 500 && this.lastX == pointer.x && this.lastY == pointer.y) {
|
if (
|
||||||
|
this.lastTime > 0 &&
|
||||||
|
pointer.time - this.lastTime < 500 &&
|
||||||
|
this.lastX == pointer.x &&
|
||||||
|
this.lastY == pointer.y
|
||||||
|
) {
|
||||||
const camera = this.gameScene.getCameraManager().getCamera();
|
const camera = this.gameScene.getCameraManager().getCamera();
|
||||||
const index = this.gameScene
|
const index = this.gameScene
|
||||||
.getGameMap()
|
.getGameMap()
|
||||||
|
Loading…
Reference in New Issue
Block a user