mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
thangz
This commit is contained in:
parent
1ad3e1ae98
commit
6bed4d4e8e
1 changed files with 7 additions and 12 deletions
|
@ -19,7 +19,7 @@
|
||||||
avatarModelURL = getAvatarFBX();
|
avatarModelURL = getAvatarFBX();
|
||||||
makeDoppelgangerForMyAvatar();
|
makeDoppelgangerForMyAvatar();
|
||||||
subscribeToWearableMessages();
|
subscribeToWearableMessages();
|
||||||
subscribeToFreezeMessages();
|
// subscribeToFreezeMessages();
|
||||||
this.setOccupied();
|
this.setOccupied();
|
||||||
var doppelProps = Entities.getEntityProperties(this.entityID);
|
var doppelProps = Entities.getEntityProperties(this.entityID);
|
||||||
Entities.editEntity(doppelgangers[0], {
|
Entities.editEntity(doppelgangers[0], {
|
||||||
|
@ -465,20 +465,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var isConnected = false;
|
|
||||||
|
|
||||||
function connectDoppelgangerUpdates() {
|
function connectDoppelgangerUpdates() {
|
||||||
Script.update.connect(updateDoppelganger);
|
Script.update.connect(updateDoppelganger);
|
||||||
isConnected = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function disconnectDoppelgangerUpdates() {
|
function disconnectDoppelgangerUpdates() {
|
||||||
|
Script.update.disconnect(updateDoppelganger);
|
||||||
if (isConnected === true) {
|
|
||||||
print('SHOULD DISCONNECT')
|
|
||||||
Script.update.disconnect(updateDoppelganger);
|
|
||||||
}
|
|
||||||
isConnected = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var sinceLastUpdate = 0;
|
var sinceLastUpdate = 0;
|
||||||
|
@ -698,9 +693,9 @@
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
|
|
||||||
if (isConnected === true) {
|
|
||||||
disconnectDoppelgangerUpdates();
|
disconnectDoppelgangerUpdates();
|
||||||
}
|
|
||||||
|
|
||||||
doppelgangers.forEach(function(doppelganger) {
|
doppelgangers.forEach(function(doppelganger) {
|
||||||
print('DOPPELGANGER' + doppelganger.id)
|
print('DOPPELGANGER' + doppelganger.id)
|
||||||
|
|
Loading…
Reference in a new issue