i need help. i have an ui button and if i pressed that button, my player will move up. that is works but, the player just move up once. how to hold an ui button and my player will move up while pressing the button?
my PlayerMoveUp function:
public void PlayerMoveUp(){
transform.Translate(Vector2.up *Time.deltaTime);
}
Thanks