public void InitCells( Board board ) { foreach ( Point point in Disabled ) { Cell cell = board.GetCell ( point.X, point.Y ); if ( cell != null ) { cell.Empty = true; cell.gameObject.SetActive ( false ); } } foreach ( var g in GoalWindows ) { Cell cell = board.GetCell ( g.pos.X, g.pos.Y ); if ( cell != null ) { cell.GoalLevel = g.level; } } }