Still haven’t said what your issue is. Do you have a value assigned to your platformsLayerMask? I really have no clue how to help you and I’m guessing others aren’t either because you haven’t said what your issue is.
Field ‘monkeyjump.platformsLayerMask’ is never assigned to, and will always have its default value( Do you have a value assigned to your platformsLayerMask? ) what value ?i called the layer platform
It’s whatever value you need for your Boxcast. So just set it equal to whatever you’re needing it to be. Can’t really correct your code as I don’t know what value you want there.
The easiest thing to do is make your LayerMask public and then Unity will create a nice little inspector widget where you can select whatever layers you want.
You added platformsLayerMask to the script for a reason. Whatever that reason was will dictate what value you should be setting it to. If you don’t know, then why did you add platformsLayerMask to this script at all?