#I get this error "The name 'HasLayerInMask' does not exist in the current context"
1 messages · Page 1 of 1 (latest)
where? which line?
85
line 85 is {
so 84
No. Check the code you posted
yes error is in the if statement on line 84
line 84 is
if (collision.collider.gameObject.layer == _groundLayer)
so you need to prefix the methodname with the class name containing the method
if (PhysicsPickup.HasLayerInMask(_groundLayer, collision.collider.gameObject.layer))