示例#1
0
    public void setDirectionState(bool front, bool right, bool back, bool left)
    {
        directionState [(int)Direction.FRONT] = front;
        directionState [(int)Direction.RIGHT] = right;
        directionState [(int)Direction.BACK]  = back;
        directionState [(int)Direction.LEFT]  = left;

        frontField.setState(front);
        rightField.setState(right);
        backField.setState(back);
        leftField.setState(left);
    }