void Start() { var width = (int)FloorManager.instance.RoomSize.width; var height = (int)FloorManager.instance.RoomSize.height; wallList = new TileList <Wall> (width, height); }
void Awake() { _instance = this; cells = new TileList <SelectableTile> ((int)RoomSize.width, (int)RoomSize.height); if (FloorSprites.Length == 0 || SelectableFloorSprites.Length == 0) { Debug.LogError("Floor sprites not set"); } if (FloorSprites.Length != SelectableFloorSprites.Length) { Debug.LogError("There should be a one-to-one mapping of floor and selectable floor sprites"); } }