update
This commit is contained in:
parent
e04ad2ac47
commit
5ea84c0882
1 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Reference in a new issue