Skip to content

Commit

Permalink
cursor: Remove workaround for onDestroy not called on scene switch
Browse files Browse the repository at this point in the history
Signed-off-by: Squareys <squareys@googlemail.com>
  • Loading branch information
Squareys committed Mar 13, 2023
1 parent 46cbda6 commit fe3da59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export class Cursor extends Component {
this.collisionMask = 1 << this.collisionGroup;
this.maxDistance = 100;

const sceneLoaded = this.onDestroy.bind(this);
this.engine.onSceneLoaded.push(sceneLoaded);
this.onDestroyCallbacks = [
() => {
const index = this.engine.onSceneLoaded.indexOf(sceneLoaded);
Expand Down

0 comments on commit fe3da59

Please sign in to comment.