mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-08 07:27:37 +02:00
slowly intergrating teleport.js
This commit is contained in:
parent
94dc942d79
commit
f6151fae85
1 changed files with 1 additions and 15 deletions
|
@ -237,10 +237,6 @@ function Teleporter(hand) {
|
|||
LaserPointers.removeLaserPointer(this.teleportRayRightInvisible);
|
||||
LaserPointers.removeLaserPointer(this.teleportRayHeadVisible);
|
||||
LaserPointers.removeLaserPointer(this.teleportRayHeadInvisible);
|
||||
|
||||
if (this.updateConnected === true) {
|
||||
Script.update.disconnect(this, this.update);
|
||||
}
|
||||
};
|
||||
|
||||
this.enterTeleportMode = function(hand) {
|
||||
|
@ -266,15 +262,9 @@ function Teleporter(hand) {
|
|||
|
||||
this.activeHand = hand;
|
||||
this.enableMappings();
|
||||
Script.update.connect(this, this.update);
|
||||
this.updateConnected = true;
|
||||
};
|
||||
|
||||
this.exitTeleportMode = function(value) {
|
||||
if (this.updateConnected === true) {
|
||||
Script.update.disconnect(this, this.update);
|
||||
}
|
||||
|
||||
this.disableMappings();
|
||||
LaserPointers.disableLaserPointer(this.teleportRayLeftVisible);
|
||||
LaserPointers.disableLaserPointer(this.teleportRayLeftInvisible);
|
||||
|
@ -298,12 +288,8 @@ function Teleporter(hand) {
|
|||
print("--------> is teleport plugin ready <--------");
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
this.run = function(controllerData, deltaTime) {
|
||||
print("---------> running teleport plugin <--------");
|
||||
};
|
||||
|
||||
this.update = function() {
|
||||
if (_this.state === TELEPORTER_STATES.IDLE) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue