Exemplo n.º 1
0
    private void OnGUI()
    {
        if (figureBoardToShow == FigureType.Empty)
        {
            return;
        }

        long boardToShow = boardData.GetBoardByReference(figureBoardToShow);

        string toShow = Convert.ToString(boardToShow, 2).PadLeft(64, '0');
        int    index  = 0;

        for (int i = 1; i <= boardData.BoardSize; i++)
        {
            toShow = toShow.Insert(boardData.BoardSize * i + index, "\n");
            index++;
        }
        GUI.BeginGroup(new Rect(10, 10, 100, 200));
        GUI.Box(new Rect(0, 0, 60, 125), "");
        GUI.Label(new Rect(0, 0, 60, 125), toShow);
        GUI.EndGroup();
    }