public void moveUp() { Anim.SetInteger("AnimState", 2); pos += Vector3.up; lastInput = "up"; time = 0; }