public Tetramino(TetraminoName _name, bool[,] _grid, Color _color, Vector2Int _center) { name = _name; grid = _grid; //all tetras can fit inside 2x4 color = _color; center = _center; }
void SpawnBlock() { TetraminoName curr = blocks.Dequeue(); Block you = new Block(spawnPosition, TetraminoMap[curr], grid); player.currentBlock = you; StartCoroutine(blockDown()); }