Pathfinding.FloodPathTracer.Setup C# (CSharp) Method

Setup() protected method

protected Setup ( Vector3 start, FloodPath flood, OnPathDelegate callback ) : void
start Vector3
flood FloodPath
callback OnPathDelegate
return void
		protected void Setup (Vector3 start, FloodPath flood, OnPathDelegate callback) {
			this.flood = flood;
			
			if (flood == null || flood.GetState () < PathState.Returned) {
				throw new System.ArgumentException ("You must supply a calculated FloodPath to the 'flood' argument");
			}
			
			base.Setup (start, flood.originalStartPoint, callback);
			nnConstraint = new FloodPathConstraint (flood);
			hasEndPoint = false;
		}
		

Usage Example

Ejemplo n.º 1
0
        // Token: 0x06002741 RID: 10049 RVA: 0x001B035C File Offset: 0x001AE55C
        public static FloodPathTracer Construct(Vector3 start, FloodPath flood, OnPathDelegate callback = null)
        {
            FloodPathTracer path = PathPool.GetPath <FloodPathTracer>();

            path.Setup(start, flood, callback);
            return(path);
        }
All Usage Examples Of Pathfinding.FloodPathTracer::Setup