I want to add switching platforms to my platformer game.
There will be 2 states;
On and Off.
On: Collider is on.
Off: Collider is off.
If it's in the "Off" state and the player gives input it will turn to the "On" state and the player can jump on it.
And if it's in the "On" state and the player gives input it will turn to the "Off" state and the player can't jump on it.
How can I do this?