Esempio n. 1
0
    public void UpdateSpecialSquareVisuals(MeshRenderer mr, Square.SQUARE_TYPE squareType)
    {
        switch (squareType)
        {
        case Square.SQUARE_TYPE.RESET_TURN_COUNT:
            mr.material = BoardBlue;
            break;

        case Square.SQUARE_TYPE.IMPASSABLE:
            mr.material = BoardRed;
            break;
        }
    }
Esempio n. 2
0
 public SpecialSquare(int c, int r, Square.SQUARE_TYPE st)
 {
     col        = c;
     row        = r;
     squareType = st;
 }
Esempio n. 3
0
    public void AddSpecialSquare(int col, int row, Square.SQUARE_TYPE squareType)
    {
        SpecialSquare sq = new SpecialSquare(col, row, squareType);

        specialSquares.Add(sq);
    }