void Awake() { boardscript = GetComponent <boardmanager>(); columns = boardscript.columns; rows = boardscript.rows; mapbit = new int[rows, columns]; for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { mapbit[i, j] = 0; } } }
// Start is called before the first frame update void Awake() { boardscript = GetComponent <boardmanager>(); m = GetComponent <GenerateMazeAlgoritnm>(); }