void instantiateFrame() { BrushFrame f = Instantiate(framePrefab); f.transform.SetParent(layerList[currentLayer].transform); layerList[currentLayer].frameList.Add(f); longestLayer = getLongestLayer(); }
public BrushStroke getLastStroke() { BrushLayer layer = layerList[currentLayer]; BrushFrame frame = layer.frameList[layer.currentFrame]; BrushStroke stroke = frame.brushStrokeList[frame.brushStrokeList.Count - 1]; return(stroke); }