Пример #1
0
    void Start()
    {
        if (useTemplateNode)
        {
            board = BoardGenerator.CreateUniformBoard(width, height, templateNode);
        }
        else
        {
            board = BoardGenerator.GenerateBoard(width, height);
        }

        display = FindObjectOfType <BoardDisplay>();
        if (display != null)
        {
            display.DrawBoard(board);
        }
    }