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

        player.currentBlock = you;
        StartCoroutine(blockDown());
    }