mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +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();
|
||||
makeDoppelgangerForMyAvatar();
|
||||
subscribeToWearableMessages();
|
||||
subscribeToFreezeMessages();
|
||||
// subscribeToFreezeMessages();
|
||||
this.setOccupied();
|
||||
var doppelProps = Entities.getEntityProperties(this.entityID);
|
||||
Entities.editEntity(doppelgangers[0], {
|
||||
|
@ -465,20 +465,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
var isConnected = false;
|
||||
|
||||
|
||||
function connectDoppelgangerUpdates() {
|
||||
Script.update.connect(updateDoppelganger);
|
||||
isConnected = true;
|
||||
|
||||
}
|
||||
|
||||
function disconnectDoppelgangerUpdates() {
|
||||
|
||||
if (isConnected === true) {
|
||||
print('SHOULD DISCONNECT')
|
||||
Script.update.disconnect(updateDoppelganger);
|
||||
}
|
||||
isConnected = false;
|
||||
Script.update.disconnect(updateDoppelganger);
|
||||
}
|
||||
|
||||
var sinceLastUpdate = 0;
|
||||
|
@ -698,9 +693,9 @@
|
|||
|
||||
function cleanup() {
|
||||
|
||||
if (isConnected === true) {
|
||||
disconnectDoppelgangerUpdates();
|
||||
}
|
||||
|
||||
disconnectDoppelgangerUpdates();
|
||||
|
||||
|
||||
doppelgangers.forEach(function(doppelganger) {
|
||||
print('DOPPELGANGER' + doppelganger.id)
|
||||
|
|
Loading…
Reference in a new issue