Fix crash gamepad null when switching from controllers to hands on Quest
keyboard-controls fixes:
Don't register listeners twice. No need to register listeners in init() or remove them in remove(), play() is executed at the component creation and pause() is called when the component is removed already.
gamepad-controls fixes:
keyboard-controls fixes:
init()
or remove them inremove()
,play()
is executed at the component creation andpause()
is called when the component is removed already.