Question by
1instrument · Nov 28, 2015 at 02:19 AM ·
touch controlsmelee attack
How to use TouchPhase.Ended in a similar fashion to GetKeyUp?
Hello, and thanks for your interest in helping me out...
I am trying to have an attack animation playback once when the player lifts his/her finger off of the mobile joystick. I have the TouchPhase.Ended setting an attack bool to true, but obviously it just stays true, and I'm not sure how to immediately reset it to false. I am new to coding, so please forgive me if I'm missing something obvious. GetKeyUp works for just one frame, right? Is there a mobile input equivalent?
Thank you so much for your time!
Comment