disconnect

This commit is contained in:
James B. Pollack 2015-12-30 20:18:52 -08:00
parent 58257b00e7
commit 40aee910d7

View file

@ -1856,8 +1856,10 @@ function cleanup() {
rightController.cleanup();
leftController.cleanup();
Controller.disableMapping(MAPPING_NAME);
if (USE_PARTICLE_BEAM_FOR_SEARCHING === true || USE_PARTICLE_BEAM_FOR_MOVING === true) {
Script.update.disconnect(renewParticleBeamLifetimes);
}
}
Script.scriptEnding.connect(cleanup);
Script.update.connect(update);