Advertisement
Eonirr

Untitled

May 17th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. private State currentState;
  2.  
  3. public enum State
  4. {
  5. up,
  6. down,
  7. left,
  8. right
  9. }
  10.  
  11. switch (currentState)
  12. {
  13. case State.up:
  14. {
  15. GoUp;
  16. }
  17. case State.down:
  18. {
  19. GoDown;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement