SHOW:
|
|
- or go back to the newest paste.
| 1 | public enum GameState {Paused, Playing}
| |
| 2 | - | if (playing == 1) Pause(); |
| 2 | + | |
| 3 | - | else if (playing == 0) Unpause(); |
| 3 | + | |
| 4 | - | } |
| 4 | + | switch (GameState) {
|
| 5 | case Playing: | |
| 6 | - | or |
| 6 | + | |
| 7 | break; | |
| 8 | case Paused: | |
| 9 | - | switch (playing) {
|
| 9 | + | |
| 10 | - | case 1: |
| 10 | + | |
| 11 | } | |
| 12 | } |