/// <summary> /// Clones this PlaygroundBrush. /// </summary> public PlaygroundBrushC Clone () { PlaygroundBrushC playgroundBrush = new PlaygroundBrushC(); playgroundBrush.texture = texture; playgroundBrush.scale = scale; playgroundBrush.detail = detail; playgroundBrush.distance = distance; if (playgroundBrush.color!=null) playgroundBrush.color = color.Clone() as Color32[]; playgroundBrush.colorLength = colorLength; return playgroundBrush; }
/// <summary> /// Initializes a PaintObject for painting. /// </summary> public void Initialize () { paintPositions = new List<PaintPositionC>(); brush = new PlaygroundBrushC(); lastPaintPosition = PlaygroundC.initialTargetPosition; initialized = true; }