Devlogs
Mobile Aiming Update
Updated the Mobile version to aim with a right virtual joystick as per Gamepad players.
Summary of how the change was made:
- Duplicated the left joystick into the right side,
- Added
FindObjectsOfType<Joystick>
into the InputController, - initialised the left and right joystick variables,
- If the left joystick is enabled (i.e. it is a mobile device), use it to get the movements,
- if the right joystick is enabled, use it to get the aim direction and trigger the primary fire if the movement is < -.2f || > .2f
Also added a "Ready" button for mobile player to set being "Ready".