예제 #1
0
 /// <summary>
 /// Creates a new TetrisGrid.
 /// </summary>
 public TetrisGrid()
 {
     Clear();
     emptyCell = TetrisGame.ContentManager.Load <Texture2D>("block");
     NextBlock = new Ipiece(this);
     NewBlock();
     GhostBlock = new GhostBlock(this);
 }
예제 #2
0
 void Start()
 {
     ghostBlockGO     = GameObject.Find("GhostBlock");
     ghostBlockScript = ghostBlockGO.GetComponent <GhostBlock>();
 }