// Update is called once per frame void Update() { if (activated) { float move = Input.GetAxis("Horizontal"); bool jump = Input.GetButtonDown("Jump"); pb.HandleInput(move, jump); } }