Guest User

Untitled

a guest
Jan 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1.     class GameState
  2.     {
  3.         public GameStateEnum GameState;
  4.  
  5.         public List<Block> Blocks = new List<Block>();
  6.  
  7.         public enum GameStateEnum
  8.         {
  9.             Playing,
  10.             GameOver
  11.         }
  12.  
  13.         public GameState(GameStateEnum gameState) {
  14.             this.GameState = gameState;
  15.         }
  16.  
  17.         public void AddBlock(BlockTypeEnum blockType, Vector2 pos) {
  18.             Block newBlock = new Block(blockType, pos);
  19.             this.Blocks.Add(newBlock);
  20.         }
  21.     }
Add Comment
Please, Sign In to add comment