bool PitCheck() { DistanceToPit = calculateChecks.PitCheck(true, facingRight); // Calculate Wall check if (DistanceToPit < 0.02f) { pitcheck = true; } else { pitcheck = false; } return(pitcheck); }
public bool PitCheck() { pitcheck = (calculateChecks.PitCheck() < ClosenessToSolid) ? true : false; return(pitcheck); }