How to set 2 UI buttons to 2 different things for mobile
so i have a thing where there are 2 UI buttons and each has 2 do something different but its on mobile and i dont know how to do it because i also need to be able to hold down buttons what i have right now is
" if (Input.GetMouseButtonDown(0)) { RB2D.velocity = (DirectionUp * speed); stop1 = true; } if (Input.GetMouseButtonUp(0)) { stop1 = false; } "
with event triggers
but that only works for one button. sorry if this question is stupid im a noob coder
Your answer
Follow this Question
Related Questions
How do I disable diagonal movement if i am using touch screen on my phone to move character around? 0 Answers
Code help with mobile touch drag 3D Top Down 0 Answers
iOS game "minimizes" if I touch the left side of the screen 0 Answers
How do is make Unity 8-way swipe touch control code 0 Answers
How to get Available memory in user's mobile using Unity App. 0 Answers