Setup() protected method

protected Setup ( Vector3 start, Vector3 avoid, int searchLength, OnPathDelegate callback ) : void
start Vector3
avoid Vector3
searchLength int
callback OnPathDelegate
return void
Exemplo n.º 1
0
        public static FleePath Construct(Vector3 start, Vector3 avoid, int searchLength, OnPathDelegate callback = null)
        {
            FleePath path = PathPool <FleePath> .GetPath();

            path.Setup(start, avoid, searchLength, callback);
            return(path);
        }
Exemplo n.º 2
0
        public static FleePath Construct(Vector3 start, Vector3 avoid, int searchLength, [Optional, DefaultParameterValue(null)] OnPathDelegate callback)
        {
            FleePath path = PathPool.GetPath <FleePath>();

            path.Setup(start, avoid, searchLength, callback);
            return(path);
        }