Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GameState
- {
- public GameStateEnum GameState;
- public List<Block> Blocks = new List<Block>();
- public enum GameStateEnum
- {
- Playing,
- GameOver
- }
- public GameState(GameStateEnum gameState) {
- this.GameState = gameState;
- }
- public void AddBlock(BlockTypeEnum blockType, Vector2 pos) {
- Block newBlock = new Block(blockType, pos);
- this.Blocks.Add(newBlock);
- }
- }
Add Comment
Please, Sign In to add comment