game is working well but ui buttons are not working well on pc but working well on android unity remote

i am developing a 2d android game the player have to buttons one to jump and one to shoot the game was working fine until i tested it on android unity remote it worked in unity remote but after returning to test it on unity editor the 2 buttons are not responding and when i tried to retest on mobile buttons are working on unity mobile

When testing on the editor, is Unity Remote running ? I faced many "conflicts" between the mouse inputs and touch inputs with Unity Remote.

1 Answer

1

just delete that button and again attach and give click event, may b it will work

I don't think you want playerPosition at all. Try replacing if (playerPosition[playerX, playerY] == map[x, y] && map[x, y] == 1) { playerPosition[playerX, playerY] = map[x, y - 1]; } with if (playerX == x && playerY == y && map[x, y] == 1) { player.transform.position = new Vector3(x, y - 1, player.transform.position.z); }