Ejemplo n.º 1
0
        private void Update()
        {
            Vector2 directionalInput = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));

            player.SetDirectionalInput(directionalInput);

            //print("test");

            if (Input.GetButtonDown("Jump"))
            {
                player.OnJumpInputDown();
            }

            if (Input.GetButtonUp("Jump"))
            {
                player.OnJumpInputUp();
            }
        }