What I want to do now is that the action changes when the button is pressed
For example, normal attack when pressing the attack button, heavy attack when long press
But I do not know how to get button press time
The way I took was
In state 1, transition to state 2 using the “get button down” action
In state 2, use “get button up” and transition to normal attack when the button is released
If you don't release the button at the same time, use "float add" in state 2 so that it will change to a heavy attack if it exceeds a certain time
But problems will occur
If you try to change to a heavy attack by pressing and holding the button while pressing the button like a combo, the transition may stop in the state 1
So, in state 1, I thought that I could solve the problem if I could get the button press time and change the transition destination, but I do not know how
Please let me know if there is a way to get the button press time and change the transition
I hope it's a machine translation so you can understand it