public void OnEnable() { var generator = ((TesseraConstraint)target).GetComponent <TesseraGenerator>(); tileList = new TileList(generator, "Path Tiles", serializedObject.FindProperty("pathTiles"), allowSingleTile: false); colorList = new ColorList(serializedObject.FindProperty("pathColors"), generator.palette); }
public void OnEnable() { tileList = new TileList(((TesseraConstraint)target).GetComponent <TesseraGenerator>(), "Tiles", serializedObject.FindProperty("tiles")); }
public void OnEnable() { tileListX = new TileList(((TesseraConstraint)target).GetComponent <TesseraGenerator>(), "X-Symmetric Tiles", serializedObject.FindProperty("symmetricTilesX"), allowSingleTile: false, allowList: false); tileListZ = new TileList(((TesseraConstraint)target).GetComponent <TesseraGenerator>(), "Z-Symmetric Tiles", serializedObject.FindProperty("symmetricTilesZ"), allowSingleTile: false, allowList: false); }