예제 #1
0
		/// <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;
		}
예제 #2
0
		/// <summary>
		/// Initializes a PaintObject for painting.
		/// </summary>
		public void Initialize () {
			paintPositions = new List<PaintPositionC>();
			brush = new PlaygroundBrushC();
			lastPaintPosition = PlaygroundC.initialTargetPosition;
			initialized = true;
		}