8 public abstract class CellArea : MonoBehaviour
13 public int Row {
get;
protected set; }
18 public int Column {
get;
protected set; }
35 int cellLayer, LayerMask triggeringLayers)
45 throw new System.NotImplementedException($
"Unhandled room type: {room.RoomType}.");
A 2D trigger to detect if an object on a monitored physics layer mask enters or exits a RoomComponent...
static CellArea2D InstantiateCellArea2D(int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers)
Instantiates a new cell area within the specified room.
A 3D trigger to detect if an object on a monitored physics layer mask enters or exits a RoomComponent...
static CellArea3D InstantiateCellArea3D(int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers)
Instantiates a new cell area within the specified room.
The base class for cell trigger areas.
int Row
The row index corresponding to the area.
RoomComponent Room
The containing room.
static CellArea InstantiateCellArea(int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers)
Instantiates a new cell area within the specified room.
void Initialize(int row, int column, RoomComponent room)
Initializes the base properties for the area.
A component for creating a room.
RoomType RoomType
The room type.
RoomType
The type of room.