void instantiateLayer() { BrushLayer l = Instantiate(layerPrefab); l.transform.SetParent(transform); layerList.Add(l); Debug.Log("layerList has " + layerList.Count + " layers."); }
public BrushStroke getLastStroke() { BrushLayer layer = layerList[currentLayer]; BrushFrame frame = layer.frameList[layer.currentFrame]; BrushStroke stroke = frame.brushStrokeList[frame.brushStrokeList.Count - 1]; return(stroke); }