Exemple #1
0
    void instantiateFrame()
    {
        BrushFrame f = Instantiate(framePrefab);

        f.transform.SetParent(layerList[currentLayer].transform);
        layerList[currentLayer].frameList.Add(f);
        longestLayer = getLongestLayer();
    }
Exemple #2
0
    public BrushStroke getLastStroke()
    {
        BrushLayer  layer  = layerList[currentLayer];
        BrushFrame  frame  = layer.frameList[layer.currentFrame];
        BrushStroke stroke = frame.brushStrokeList[frame.brushStrokeList.Count - 1];

        return(stroke);
    }