コード例 #1
0
        // Update is called once per frame
        void Update()
        {
            //m_Controller.ClearInputBuffer(Time.deltaTime);

            var horizontal = Input.GetAxisRaw("Horizontal");
            var vertical   = Input.GetAxisRaw("Vertical");

            var jump = Input.GetButtonDown("Jump");
            var dash = Input.GetButtonDown("Fire3");

            var holdingJump = Input.GetButton("Jump");
            var holdingDash = Input.GetButton("Fire3");

            var releaseJump = Input.GetButtonUp("Jump");

            m_Controller.InputMovement(new Vector2(horizontal, vertical));

            m_Controller.PressJump(jump);

            m_Controller.PressDash(dash);

            m_Controller.HoldJump(holdingJump);

            m_Controller.HoldDash(holdingDash);

            m_Controller.ReleaseJump(releaseJump);
        }
コード例 #2
0
 public void DashStart()
 {
     controller.PressDash(true);
     isHoldDash = true;
 }