Example #1
0
    private void addRedBoxAroundResident(string side, int num)
    {
        //adds a red border around a resident, to draw attention to that resident
        SideHintTile[] row;
        if (side == "top")
        {
            row = gameManager.puzzleGenerator.topHints;
        }
        else if (side == "bottom")
        {
            row = gameManager.puzzleGenerator.bottomHints;
        }
        else if (side == "left")
        {
            row = gameManager.puzzleGenerator.leftHints;
        }
        else
        {
            row = gameManager.puzzleGenerator.rightHints;
        }
        SideHintTile s = row[num];

        s.addRedBorder();
    }