Pathfinding.ConstantPath.Setup C# (CSharp) Method

Setup() protected method

protected Setup ( Vector3 start, int maxGScore, OnPathDelegate callback ) : void
start Vector3
maxGScore int
callback OnPathDelegate
return void
		protected void Setup (Vector3 start, int maxGScore, OnPathDelegate callback) {
			this.callback = callback;
			startPoint = start;
			originalStartPoint = startPoint;
			
			endingCondition = new EndingConditionDistance (this,maxGScore);
		}
		

Usage Example

Ejemplo n.º 1
0
        public static ConstantPath Construct(Vector3 start, int maxGScore, OnPathDelegate callback = null)
        {
            ConstantPath path = PathPool <ConstantPath> .GetPath();

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