public void bob() { LayerData layer = new LayerData(null, "Layer", 2, 2); ArchitectTilePositionGetter tilePosition = new ArchitectTilePositionGetter(Vector3.zero, layer); TileType type = new TileType(5); ArchitectRotationFlip rotation = new ArchitectRotationFlip(90, false, false); BrushCommand brush = new BrushCommand(tilePosition, type, rotation); bool done = brush.Do(); Debug.Log(done); Assert.IsTrue(done); }
public ICommand EndStroke(Transform parent, Material mat) { string BrushId = System.Guid.NewGuid().ToString(); // Reset Preview and Pass it's data to the new tube BrushCommand rc = new BrushCommand(BrushId, this, _preview.Vertices, _preview.Tris, _preview.Uvs, parent, mat); _preview.Reset(); rc.Execute(); return(rc); }