diff --git a/src/components/freeze-controller.js b/src/components/freeze-controller.js index c4e0f527f9941cf1a2c2b0568fdf8b1a8ebbac61..db434dec0f6bf42ec7bd5ff1bb0496de24d2ba65 100644 --- a/src/components/freeze-controller.js +++ b/src/components/freeze-controller.js @@ -24,8 +24,8 @@ AFRAME.registerComponent("freeze-controller", { tick: function() { const userinput = AFRAME.scenes[0].systems.userinput; - const ensureFrozen = userinput.readFrameValueAtPath(paths.actions.ensureFrozen); - const thaw = userinput.readFrameValueAtPath(paths.actions.thaw); + const ensureFrozen = userinput.frame[paths.actions.ensureFrozen]; + const thaw = userinput.frame[paths.actions.thaw]; const toggleFreezeDueToInput = (this.el.is("frozen") && thaw) || (!this.el.is("frozen") && ensureFrozen);