Ejemplo n.º 1
0
    static bool CheckCorner(Vector3 v, RoomCorner corner)
    {
        switch (corner)
        {
        case RoomCorner.NORTHEAST:
            return(CheckWall(v, RoomSide.NORTH) && CheckWall(v, RoomSide.EAST));

        case RoomCorner.NORTHWEST:
            return(CheckWall(v, RoomSide.NORTH) && CheckWall(v, RoomSide.WEST));

        case RoomCorner.SOUTHEAST:
            return(CheckWall(v, RoomSide.SOUTH) && CheckWall(v, RoomSide.EAST));

        case RoomCorner.SOUTHWEST:
            return(CheckWall(v, RoomSide.SOUTH) && CheckWall(v, RoomSide.WEST));
        }

        return(false);
    }
Ejemplo n.º 2
0
 public ObjectByCorner(GoalObject target)
 {
     this.target = target;
     corner      = RandomCorner();
 }