I made a button and when I click on it I want the player jumped.
I used this:
public int JumpSpeed = 30;
GameObject.Find("Player").transform.Translate(Vector3.up * JumpSpeed * Time.deltaTime);
but I do not like it because it looks as if he moved to a position and then just fell.
Can you please show me a better script?