Created
November 30, 2018 02:17
-
-
Save decriptor/0123113637b88c627c18051c4e0f1971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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