This commit is contained in:
Dennis Schoepf 2021-07-30 23:44:32 +02:00
parent e04ad2ac47
commit 5ea84c0882

View file

@ -49,11 +49,6 @@ export class Package {
); );
const isTouched = areasColliding({ x: this.x, y: this.y, w: this.size }, playerHead, true); const isTouched = areasColliding({ x: this.x, y: this.y, w: this.size }, playerHead, true);
console.log('Revealed', isRevealed);
console.log('isTouched', isTouched);
console.log('wasTouched', this.wasTouched);
console.log('wasInteractedWith', this.wasInteractedWith);
if (isRevealed) { if (isRevealed) {
if (this.packageState !== PackageStates.ACTIVE) { if (this.packageState !== PackageStates.ACTIVE) {
this.packageState = PackageStates.REVEALED; this.packageState = PackageStates.REVEALED;
@ -141,7 +136,6 @@ export class Package {
public onClick() { public onClick() {
if (this.hover && !this.wasInteractedWith) { if (this.hover && !this.wasInteractedWith) {
console.log('click on shape');
this.wasInteractedWith = true; this.wasInteractedWith = true;
store.getState().addInfoMessage({ store.getState().addInfoMessage({
headline: this.name, headline: this.name,