I am developing an android game where the main player is controlled using 2 ui joystick buttons. As Mouse X is assign to left click the player stats shooting when the screen is touched(or mouse is pressed while developing). So how can edit the following code or change left click to ui button.
Player shooting input
if ((CrossPlatformInputManager.GetAxisRaw("Mouse X") != 0 || CrossPlatformInputManager.GetAxisRaw("Mouse Y") != 0) && timer >= timeBetweenBullets)
{
// ... shoot the gun
Shoot();
}