Update don't call createPlayer but call moveUser

Change time of pointerclicked from 100ms to 250ms
Suppression of console.log
This commit is contained in:
GRL 2021-06-03 16:54:52 +02:00
parent 1527134eeb
commit c435b7451e
2 changed files with 2 additions and 3 deletions

View file

@ -143,7 +143,7 @@ export class SelectCharacterScene extends AbstractCharacterScene {
this.pointerClicked = true; this.pointerClicked = true;
this.currentSelectUser = i; this.currentSelectUser = i;
this.moveUser(); this.moveUser();
setTimeout(() => {this.pointerClicked = false;}, 100); setTimeout(() => {this.pointerClicked = false;}, 250);
}); });
this.players.push(player); this.players.push(player);
} }
@ -244,7 +244,7 @@ export class SelectCharacterScene extends AbstractCharacterScene {
update(time: number, delta: number): void { update(time: number, delta: number): void {
if(this.lazyloadingAttempt){ if(this.lazyloadingAttempt){
this.createCurrentPlayer(); this.moveUser();
this.lazyloadingAttempt = false; this.lazyloadingAttempt = false;
} }
} }

View file

@ -60,7 +60,6 @@ class WaScaleManager {
public saveZoom(): void { public saveZoom(): void {
this._saveZoom = this.hdpiManager.zoomModifier; this._saveZoom = this.hdpiManager.zoomModifier;
console.log(this._saveZoom);
} }
public restoreZoom(): void{ public restoreZoom(): void{