Beispiel #1
0
 /// <summary>
 /// Gets safe copies of objects used for frame rendering.
 /// </summary>
 public void GetRenderObjects(out Space[,] matrixGrid, out Brick holdBrick, out Brick[] nextBricks, out PlayerStats stats)
 {
     lock (this)
     {
         matrixGrid = GetGrid(includeBrick: true, includeGhost: GameConfig.Instance.ShowGhost);
         holdBrick  = GetHold();
         nextBricks = GetNextBricks();
         stats      = _stats;
     }
 }