Skip to content

Instantly share code, notes, and snippets.

@decriptor
Created November 30, 2018 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save decriptor/0123113637b88c627c18051c4e0f1971 to your computer and use it in GitHub Desktop.
Save decriptor/0123113637b88c627c18051c4e0f1971 to your computer and use it in GitHub Desktop.
enum GameState {
Damage = 1,
OtherDamage = 2,
SomethingElse = 3,
}
var state = GameState.OtherDamage;
switch (state) {
case GameState.Damage:
break;
case GameState.OtherDamage:
break;
case GameState.SomethingElse:
break;
default:
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment