Question about triggering a case in a switch case

Code in question:

Thats my switch case and my states are set inside an enum list.

How do I go about actually setting it up somewhere to trigger these cases? Or is it not possible to use switch cases like this?

Anything I try just gives me missing cast errors…

by Halfcookedrice via /r/csharp

Leave a Reply