And I found error will showing when I don’t using touch to play it.
Error was about this.app.touch.on
I know if I play this project with keyboard, app.touch.on will be null and cause this error.
But I really don’t know how to fix it…
I put app.on codes inside if (this.app.touch) {}
Project went well but mouse move(Camera movement) don’t work anymore.
So… finally what I want to do is :
keyboard user can play with keyboard
and mobile user can play with touch.
DO NOT NEED TO SWITCH.(If can, will be better)
Try to play with keyboard and mouse. Camera will not spin while mouse is moving. If you disable touchCameraMovement it will moving fine. That is the issue.
Thanks for helping. I will try the rest.
But If you can make it perfect. It will be the best sample project with third-person both touch and keyboard playing.