Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private State currentState;
- public enum State
- {
- up,
- down,
- left,
- right
- }
- switch (currentState)
- {
- case State.up:
- {
- GoUp;
- }
- case State.down:
- {
- GoDown;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement