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