Exemplo n.º 1
0
		/// <summary>
		/// Live erases into a PaintObject's positions directly, returns true if position was erased.
		/// </summary>
		/// <param name="paintObject">Paint object.</param>
		/// <param name="position">Position.</param>
		/// <param name="radius">Radius.</param>
		public static bool Erase (PaintObjectC paintObject, Vector3 position, float radius) {
			return paintObject.Erase(position,radius);
		}
Exemplo n.º 2
0
		/// <summary>
		/// Clones this PaintObject.
		/// </summary>
		public PaintObjectC Clone () {
			PaintObjectC paintObject = new PaintObjectC();
			if (paintPositions!=null && paintPositions.Count>0) {
				paintObject.paintPositions = new List<PaintPositionC>();
				paintObject.paintPositions.AddRange(paintPositions);
			}
			paintObject.positionLength = positionLength;
			paintObject.lastPaintPosition = lastPaintPosition;
			paintObject.spacing = spacing;
			paintObject.layerMask = layerMask;
			paintObject.collisionType = collisionType;
			if (brush!=null)
				paintObject.brush = brush.Clone();
			else
				paintObject.brush = new PlaygroundBrushC();
			paintObject.exceedMaxStopsPaint = exceedMaxStopsPaint;
			paintObject.initialized = initialized;
			return paintObject;
		}
Exemplo n.º 3
0
		/// <summary>
		/// Live paints into a PaintObject's positions directly.
		/// </summary>
		/// <param name="paintObject">Paint object.</param>
		/// <param name="position">Position.</param>
		/// <param name="normal">Normal.</param>
		/// <param name="parent">Parent.</param>
		/// <param name="color">Color.</param>
		public static void Paint (PaintObjectC paintObject, Vector3 position, Vector3 normal, Transform parent, Color32 color) {
			paintObject.Paint(position,normal,parent,color);
		}
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new PaintObject.
 /// </summary>
 /// <returns>The paint object.</returns>
 /// <param name="playgroundParticles">Playground particles.</param>
 public static PaintObjectC NewPaintObject(PlaygroundParticlesC playgroundParticles)
 {
     PaintObjectC paintObject = new PaintObjectC();
     playgroundParticles.paint = paintObject;
     playgroundParticles.paint.Initialize();
     return paintObject;
 }