new coolin

This commit is contained in:
James B. Pollack 2016-08-18 14:08:31 -07:00
parent 402bad3417
commit 2e22bc5e46

View file

@ -287,6 +287,15 @@ function Teleporter() {
if (this.tooClose === true) {
this.deleteTargetOverlay();
this.rightLineOn(rightPickRay.origin, rightIntersection.intersection, COLORS_TELEPORT_TOO_CLOSE);
if (this.cancelOverlay !== null) {
this.updateCancelOverlay(rightIntersection);
} else {
this.createCancelOverlay();
}
} else {
if (this.inCoolIn === true) {
this.deleteTargetOverlay();
this.rightLineOn(rightPickRay.origin, rightIntersection.intersection, COLORS_TELEPORT_TOO_CLOSE);
if (this.cancelOverlay !== null) {
this.updateCancelOverlay(rightIntersection);
@ -302,6 +311,8 @@ function Teleporter() {
} else {
this.createTargetOverlay();
}
}
}
@ -345,6 +356,15 @@ function Teleporter() {
} else {
this.createCancelOverlay();
}
} else {
if (this.inCoolIn === true) {
this.deleteTargetOverlay();
this.leftLineOn(leftPickRay.origin, leftIntersection.intersection, COLORS_TELEPORT_TOO_CLOSE);
if (this.cancelOverlay !== null) {
this.updateCancelOverlay(leftIntersection);
} else {
this.createCancelOverlay();
}
} else {
this.deleteCancelOverlay();
this.leftLineOn(leftPickRay.origin, leftIntersection.intersection, COLORS_TELEPORT_CAN_TELEPORT);
@ -354,6 +374,8 @@ function Teleporter() {
} else {
this.createTargetOverlay();
}
}
}