Example #1
0
    protected void FixedUpdate()
    {
        m_Controller.Move(m_HorizontalMovement * Time.fixedDeltaTime);

        if (m_Jumping)
        {
            m_Controller.Jump();
            m_Jumping = false;
        }

        if (m_Attacking)
        {
            m_Controller.Attack();
            m_Attacking = false;
        }
    }