示例#1
0
 public void Awake()
 {
     spawnDisplacement = Point.Subtract(spawnPoint, previewPoint);
     random            = new System.Random();
     activeTetromino   = Tetromino.CreateEmpty();
     nextTetromino     = Tetromino.CreateEmpty();
 }
示例#2
0
    private void FreezeTetromino()
    {
        foreach (Block block in activeTetromino.Blocks)
        {
            blockField.InsertBlock(block);
        }

        activeTetromino = Tetromino.CreateEmpty();
    }