79147423

Date: 2024-11-01 09:03:53
Score: 1
Natty:
Report link

The issue was with this piece of code, now it works just perfect.

private void StateMachine()
{
    horizontalInput = Input.GetAxisRaw("Horizontal");
    verticalInput = Input.GetAxisRaw("Vertical");

    if((wallLeft || wallRight) && verticalInput > 0 && AboveGround())
    {
        if (!pm.wallrunning)
        {
            StartWallRun();
        }
    }
    else 
    {
        if (pm.wallrunning)
        {
            StopWallRun();
        }
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ikanamaya