Пример #1
0
    void instantiateLayer()
    {
        BrushLayer l = Instantiate(layerPrefab);

        l.transform.SetParent(transform);
        layerList.Add(l);
        Debug.Log("layerList has " + layerList.Count + " layers.");
    }
Пример #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);
    }